summaryrefslogtreecommitdiff
path: root/templates/info-page.html
blob: 077b1a1c0d5994a2af7accef78899c5eba9640b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{# Template for non-articles (About Me, Privacy…) #}

{% extends "base.html" %}

{%- block main_content %}

{%- set page_or_section = page | default(value=section) -%}

{{ macros_page_header::page_header(title=page_or_section.title) }}

<div id="page-content">
    <main>
        {# The replace pattern is used to enable arbitrary locations for the Table of Contents #}
        {# This is Philipp Oppermann's workaround: https://github.com/getzola/zola/issues/584#issuecomment-474329637 #}
        {{ page_or_section.content | replace(from="<!-- toc -->", to=macros_toc::toc(page=page_or_section, header=false, language_strings=language_strings)) | safe }}
    </main>
</div>

{%- include "partials/extra_features.html" -%}

{%- endblock main_content %}