From 4b3750fb9f4d2f24ab2d8f6fc4f6cec2fc0c5390 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:04:06 +0800 Subject: [PATCH] Add code project and snippet category to page title --- src/projects/code/bellabuffs-phpmailer.md | 2 +- src/projects/code/code.11tydata.json | 5 ++++- src/projects/snippets/disability-pride-flag-background.md | 2 +- src/projects/snippets/snippets.11tydata.json | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/projects/code/bellabuffs-phpmailer.md b/src/projects/code/bellabuffs-phpmailer.md index 18dba385..a28e0f10 100644 --- a/src/projects/code/bellabuffs-phpmailer.md +++ b/src/projects/code/bellabuffs-phpmailer.md @@ -1,5 +1,5 @@ --- -title: BellaBuffs with PHPMailer Integration +projectTitle: BellaBuffs with PHPMailer Integration desc: My fork of BellaBuffs, with PHPMailer powering the email sending features. eleventyNavigation: order: 4 diff --git a/src/projects/code/code.11tydata.json b/src/projects/code/code.11tydata.json index 12ae3810..941f378a 100644 --- a/src/projects/code/code.11tydata.json +++ b/src/projects/code/code.11tydata.json @@ -1,3 +1,6 @@ { - "tags": ["code projects"] + "tags": ["code projects"], + "eleventyComputed": { + "title": "{{ projectTitle }} | Code Projects" + } } \ No newline at end of file diff --git a/src/projects/snippets/disability-pride-flag-background.md b/src/projects/snippets/disability-pride-flag-background.md index dec6c287..07cae79f 100644 --- a/src/projects/snippets/disability-pride-flag-background.md +++ b/src/projects/snippets/disability-pride-flag-background.md @@ -1,5 +1,5 @@ --- -title: Responsive Disability Pride Flag CSS Background +codeTitle: Responsive Disability Pride Flag CSS Background desc: CSS code snippet of Disability Pride Flag background that can adapt to different widths and screen sizes. eleventyNavigation: order: 5 diff --git a/src/projects/snippets/snippets.11tydata.json b/src/projects/snippets/snippets.11tydata.json index c5211b89..dd9ab025 100644 --- a/src/projects/snippets/snippets.11tydata.json +++ b/src/projects/snippets/snippets.11tydata.json @@ -1,3 +1,6 @@ { - "tags": ["code snippets"] + "tags": ["code snippets"], + "eleventyComputed": { + "title": "{{ codeTitle }} | Code Snippets" + } } \ No newline at end of file