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"> <div class="content__wrapper">
{% if toc %} {% if toc %}
{% include "toc.njk" %} {% include "global/toc.njk" %}
{% endif %} {% endif %}
<article class="article"> <article class="article">

View File

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

View File

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

View File

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