From 9e7bc66f568ccd3b6129bf1f05b2323cd81eb023 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:02:16 +0800 Subject: [PATCH] Move metagen, ToC and scroll-to-top button to global includes folder --- src/_includes/{ => global}/metagen.njk | 0 src/_includes/{ => global}/toc.njk | 0 src/_includes/{main => global}/top-btn.njk | 0 src/_includes/main/article.njk | 2 +- src/_includes/main/base.njk | 4 ++-- src/_includes/main/content.njk | 2 +- src/_includes/start/base.njk | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) rename src/_includes/{ => global}/metagen.njk (100%) rename src/_includes/{ => global}/toc.njk (100%) rename src/_includes/{main => global}/top-btn.njk (100%) diff --git a/src/_includes/metagen.njk b/src/_includes/global/metagen.njk similarity index 100% rename from src/_includes/metagen.njk rename to src/_includes/global/metagen.njk diff --git a/src/_includes/toc.njk b/src/_includes/global/toc.njk similarity index 100% rename from src/_includes/toc.njk rename to src/_includes/global/toc.njk diff --git a/src/_includes/main/top-btn.njk b/src/_includes/global/top-btn.njk similarity index 100% rename from src/_includes/main/top-btn.njk rename to src/_includes/global/top-btn.njk diff --git a/src/_includes/main/article.njk b/src/_includes/main/article.njk index fad08888..811740d8 100644 --- a/src/_includes/main/article.njk +++ b/src/_includes/main/article.njk @@ -17,7 +17,7 @@ metadata:
{% if toc %} - {% include "toc.njk" %} + {% include "global/toc.njk" %} {% endif %}
diff --git a/src/_includes/main/base.njk b/src/_includes/main/base.njk index 2d1239d2..6466de6c 100644 --- a/src/_includes/main/base.njk +++ b/src/_includes/main/base.njk @@ -7,7 +7,7 @@ {# Meta data #} - {% include "metagen.njk" %} + {% include "global/metagen.njk" %} {# CSS #} @@ -30,6 +30,6 @@ {{ content | safe }} {% include "main/footer.njk" %} - {% include "main/top-btn.njk" %} + {% include "global/top-btn.njk" %} \ No newline at end of file diff --git a/src/_includes/main/content.njk b/src/_includes/main/content.njk index d89fe950..1e7e5c7d 100644 --- a/src/_includes/main/content.njk +++ b/src/_includes/main/content.njk @@ -11,7 +11,7 @@ layout: main/base
{% if toc %} - {% include "toc.njk" %} + {% include "global/toc.njk" %} {% endif %}
diff --git a/src/_includes/start/base.njk b/src/_includes/start/base.njk index cbd8525c..f191cfd3 100644 --- a/src/_includes/start/base.njk +++ b/src/_includes/start/base.njk @@ -7,7 +7,7 @@ {# Meta data #} - {% include "metagen.njk" %} + {% include "global/metagen.njk" %} {# CSS #}