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"> <header class="main__header">
<h1>{{ pageTitle or title }}</h1> <h1>{{ pageTitle or title }}</h1>
{% if intro %} {% if desc %}
<p>{{ intro }}</p> <p>{{ desc }}</p>
{% endif %} {% endif %}
</header> </header>

View File

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

View File

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

View File

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