Use desc instead of intro variable for description in the heading

This commit is contained in:
Helen Chong 2024-04-16 00:55:42 +08:00
parent b55b75e630
commit 9d508170ee
4 changed files with 5 additions and 7 deletions

View File

@ -4,8 +4,8 @@ layout: main/base
<header class="main__header">
<h1>{{ pageTitle or title }}</h1>
{% if intro %}
<p>{{ intro }}</p>
{% if desc %}
<p>{{ desc }}</p>
{% endif %}
</header>

View File

@ -2,10 +2,9 @@
layout: main/content
tags: pages
pageTitle: Welcome!
intro: Home page of Leilukin's Hub.
desc: Home page of Leilukin's Hub.
metadata:
title: Home
desc: Home page of Leilukin's Hub.
date: 2023-01-01
isContentDivided: true
---

View File

@ -1,11 +1,10 @@
---
layout: main/content
title: About
metadata:
desc: About this website and its owner.
metadata:
type: article
date: 2023-01-02
intro: Learn more about this website and its owner.
isContentDivided: true
---

View File

@ -1,8 +1,8 @@
---
layout: main/content
title: Articles
metadata:
desc: List of articles published on my website.
metadata:
type: article
date: 2023-01-04
templateEngineOverride: njk, md