Use global content layout for A Summer's End shrine's

This commit is contained in:
Helen Chong 2024-04-19 07:52:34 +08:00
parent 516dc1ecdb
commit 1804072371
2 changed files with 4 additions and 17 deletions

View File

@ -2,21 +2,6 @@
layout: asummersend/base layout: asummersend/base
--- ---
<header class="main__header"> {% extends "global/content.njk" %}
<h1>{{ pageTitle or title }}</h1>
{% if desc %}
<p>{{ desc }}</p>
{% endif %}
</header>
<div class="content__wrapper"> {% block shrineInfo %}{% include "asummersend/shrineinfo.njk" %}{% endblock %}
{% if toc %}
{% include "global/toc.njk" %}
{% endif %}
<div class="content {{'content--divided' if isContentDivided }}">
{{ content | safe }}
</div>
{% include "asummersend/shrineinfo.njk" %}
</div>

View File

@ -51,6 +51,8 @@
{% if tags and tags.includes("contents") or title === "Articles" or tags and tags.includes("blog pages") %} {% if tags and tags.includes("contents") or title === "Articles" or tags and tags.includes("blog pages") %}
{% include "main/content-nav.njk" %} {% include "main/content-nav.njk" %}
{% endif %} {% endif %}
{% block shrineInfo %}{% endblock %}
</div> </div>
<style> <style>