Set page title for articles and blog posts

This commit is contained in:
Helen Chong 2024-04-16 01:55:32 +08:00
parent 819c25e26b
commit 4aebe1a9c0
3 changed files with 8 additions and 4 deletions

View File

@ -2,8 +2,6 @@
layout: main/base
metadata:
type: article
eleventyComputed:
title: "{{ articleTitle }} | Articles"
---
<header class="main__header">

View File

@ -1,4 +1,7 @@
{
"tags": "articles",
"layout": "main/article"
"layout": "main/article",
"eleventyComputed": {
"title": "{{ articleTitle }} | Articles"
}
}

View File

@ -1,4 +1,7 @@
{
"layout": "main/article",
"tags": "posts"
"tags": "posts",
"eleventyComputed": {
"title": "{{ articleTitle }} | Blog"
}
}