From 3b6ece319fd09a081d9eae9d27e6d7eaf7a25ed9 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Thu, 11 Apr 2024 23:29:15 +0800
Subject: [PATCH] Rearrange layout and template files
---
src/_includes/{layouts/main.njk => main/base.njk} | 8 ++++----
src/_includes/{components => main}/cdn.njk | 0
src/_includes/{components => main}/footer.njk | 0
src/_includes/{components => main}/header.njk | 0
src/_includes/{components => main}/navbar.njk | 0
src/_includes/{layouts/start.njk => start/base.njk} | 0
src/about.njk | 6 +++---
src/home.njk | 6 +++---
src/index.njk | 2 +-
src/not_found.njk | 4 ++--
src/sitemap.njk | 6 +++---
11 files changed, 16 insertions(+), 16 deletions(-)
rename src/_includes/{layouts/main.njk => main/base.njk} (92%)
rename src/_includes/{components => main}/cdn.njk (100%)
rename src/_includes/{components => main}/footer.njk (100%)
rename src/_includes/{components => main}/header.njk (100%)
rename src/_includes/{components => main}/navbar.njk (100%)
rename src/_includes/{layouts/start.njk => start/base.njk} (100%)
diff --git a/src/_includes/layouts/main.njk b/src/_includes/main/base.njk
similarity index 92%
rename from src/_includes/layouts/main.njk
rename to src/_includes/main/base.njk
index 0a05bcb5..1a88286d 100644
--- a/src/_includes/layouts/main.njk
+++ b/src/_includes/main/base.njk
@@ -22,7 +22,7 @@
{% endif %}
{# CDNs #}
- {% include "components/cdn.njk" %}
+ {% include "main/cdn.njk" %}
{# Favicon #}
@@ -43,8 +43,8 @@
- {% include "components/header.njk" %}
- {% include "components/navbar.njk" %}
+ {% include "main/header.njk" %}
+ {% include "main/navbar.njk" %}
- {% include "components/footer.njk" %}
+ {% include "main/footer.njk" %}