From f56da996ae9d92bf736ee0a757a0fe30b2be4be5 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:24:09 +0800 Subject: [PATCH] Create a pages collection --- src/index.njk | 1 + src/{ => pages}/about.njk | 0 src/{ => pages}/home.njk | 0 src/pages/pages.11tydata.json | 5 +++++ 4 files changed, 6 insertions(+) rename src/{ => pages}/about.njk (100%) rename src/{ => pages}/home.njk (100%) create mode 100644 src/pages/pages.11tydata.json diff --git a/src/index.njk b/src/index.njk index ee441909..fdfc86a1 100644 --- a/src/index.njk +++ b/src/index.njk @@ -1,5 +1,6 @@ --- layout: start/base +tags: pages desc: Welcome to Leilukin's personal website. h1: Welcome to Leilukin's Hub! --- diff --git a/src/about.njk b/src/pages/about.njk similarity index 100% rename from src/about.njk rename to src/pages/about.njk diff --git a/src/home.njk b/src/pages/home.njk similarity index 100% rename from src/home.njk rename to src/pages/home.njk diff --git a/src/pages/pages.11tydata.json b/src/pages/pages.11tydata.json new file mode 100644 index 00000000..05dbeab4 --- /dev/null +++ b/src/pages/pages.11tydata.json @@ -0,0 +1,5 @@ +{ + "tags": "pages", + "layout": "main/base", + "permalink": "/{{ page.fileSlug }}/" +} \ No newline at end of file