Use sitemeta variables for web page descriptions

This commit is contained in:
Helen Chong 2024-06-02 14:21:54 +08:00
parent 948d04c6b4
commit c272f60d1c
3 changed files with 7 additions and 4 deletions

View File

@ -1,9 +1,7 @@
---
layout: main/content
title: Blog
desc: Blog hosted on Leilukin's personal website.
tags: blog pages
pageTitle: Welcome to Leilukin's Hub Blog!
navTitle: Blog Home
pagination:
data: collections.posts
@ -13,6 +11,9 @@ pagination:
permalink: "/{{ page.fileSlug }}{% if pagination.pageNumber > 0 %}/page/{{ pagination.pageNumber + 1 }}{% endif %}/"
eleventyNavigation:
order: 4
eleventyComputed:
pageTitle: Welcome to {{ sitemeta.siteName | safe }} Blog!
desc: Blog hosted on {{ sitemeta.siteAuthor.name }}'s pwesonal website.
---
<ul class="blog__posts">

View File

@ -1,11 +1,12 @@
---
layout: main/content
title: Now
desc: What Leilukin is doing now.
updated: 2024-05-31
eleventyNavigation:
key: Now
order: 3
eleventyComputed:
desc: What {{ sitemeta.siteAuthor.name }} is doing now.
---
*This page was last updated on {{ updated | formatDate }}.*

View File

@ -1,11 +1,12 @@
---
layout: main/content
title: Projects
desc: Things I have created.
isContentDivided: true
toc: true
eleventyNavigation:
order: 6
eleventyComputed:
desc: Things {{ sitemeta.siteAuthor.name }} has created.
---
{% container "section", "content__section" %}