Files
serinty-zola-theme/templates/page.html
T

56 lines
1.7 KiB
HTML

{% extends "base.html"%}
{% import "_macros.html" as macros -%}
{% import "_page_macros.html" as pmacros -%}
{% block head %}
<link rel="stylesheet" href="{{get_url(path='navbar.css')}}" />
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ current_url }}" />
{% if page.description -%}
<meta property="og:description" content="{{ page.description }}" />
{% endif -%}
<meta property="og:determiner" content="the" />
{{ pmacros::metaOgpLangs() }}
<meta property="og:site_name" content="{{ config.title }}" />
<title>{{ page.title }}</title>
{{ super() }}
{% endblock %}
{% block nav %}
{{ macros::render_nav( section=get_section(path="_index.md")) }}
{{ pmacros::render_language() }}
{% endblock %}
<div id="toc_container">
{% if page.toc %}
<p class="toc_title">Contents</p>
<div class="toc_list">
{% for h1 in page.toc %}
<div>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<div>
{% for h2 in h1.children %}
<div>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% block content %}
<main>
<article>
{{ page.content | safe }}
</article>
</main>
{% endblock %}
{% block footer %}
<div><p>{{ page.toc }} </p></div>
{% endblock %}