Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8bc9b25

Browse files
committed
fix page title and description
1 parent 5ef45e7 commit 8bc9b25

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/_data/global.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"siteTitle": "Test Website Title"
3+
}

src/_data/site.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/_includes/layouts/base.njk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<!-- <link rel="icon" href="favicon.png" type="image/png" /> -->
7-
<title>[hard coded title]</title>
7+
<title>{{ renderData.title or title }} - {{ global.siteTitle }}</title>
8+
<meta name="Description" content="{{ renderData.description or description or siteSettings.description }}">
89
<script>document.documentElement.classList.remove('no-js');</script>
910
<link rel="stylesheet" href="css/site.css">
1011
{% block pageHead %}

src/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: base
3-
title: Homepage Test
3+
title: Homepage
44
description: 'Test Description.'
55
---
66

0 commit comments

Comments
 (0)