Move metagen, ToC and scroll-to-top button to global includes folder
This commit is contained in:
parent
d5a244cbb0
commit
9e7bc66f56
|
@ -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">
|
||||||
|
|
|
@ -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>
|
|
@ -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 }}">
|
||||||
|
|
|
@ -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}}">
|
||||||
|
|
Loading…
Reference in New Issue