Move metagen, ToC and scroll-to-top button to global includes folder

This commit is contained in:
Helen Chong 2024-04-16 23:02:16 +08:00
parent d5a244cbb0
commit 9e7bc66f56
7 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ metadata:
<div class="content__wrapper">
{% if toc %}
{% include "toc.njk" %}
{% include "global/toc.njk" %}
{% endif %}
<article class="article">

View File

@ -7,7 +7,7 @@
{# Meta data #}
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
{% include "metagen.njk" %}
{% include "global/metagen.njk" %}
{# CSS #}
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
@ -30,6 +30,6 @@
{{ content | safe }}
</main>
{% include "main/footer.njk" %}
{% include "main/top-btn.njk" %}
{% include "global/top-btn.njk" %}
</body>
</html>

View File

@ -11,7 +11,7 @@ layout: main/base
<div class="content__wrapper">
{% if toc %}
{% include "toc.njk" %}
{% include "global/toc.njk" %}
{% endif %}
<div class="content {{'content--divided' if isContentDivided }}">

View File

@ -7,7 +7,7 @@
{# Meta data #}
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
{% include "metagen.njk" %}
{% include "global/metagen.njk" %}
{# CSS #}
<link rel="stylesheet" href="{{'/assets/css/index.css' | url | safe}}">