mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-21 03:39:54 +00:00
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
|
{% extends "layout.html" %}
|
||
|
|
||
|
{% block title %}{{ section.title }} - {{ config.title }}{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<h1 class="logo"><a href="{{ config.base_url }}/" class="no-border hover-underline">👨💻 {{ config.title }}</a></h1>
|
||
|
|
||
|
<nav>
|
||
|
{% for ancestor in section.ancestors %}
|
||
|
{% set section = get_section(path=ancestor) %}
|
||
|
{% if section.path == "/" %}
|
||
|
<a href="{{ config.base_url }}{{ section.path }}" class="no-border hover-underline">Home</a>
|
||
|
{% else %}
|
||
|
<span class="breadcrumb-sep">/</span>
|
||
|
<a href="{{ config.base_url }}/{{ section.path }}" class="no-border hover-underline">{{ section.title }}</a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</nav>
|
||
|
|
||
|
<main class="{{ section.extra.main_class | default(value="") }}">
|
||
|
<h2>{{ section.title }}</h2>
|
||
|
|
||
|
{{ section.content | safe }}
|
||
|
|
||
|
{% for sub in section.subsections %}
|
||
|
{% set section = get_section(path=sub) %}
|
||
|
{% for page in section.pages %}
|
||
|
{% include "article.html" %}
|
||
|
{% endfor %}
|
||
|
{% endfor %}
|
||
|
|
||
|
{% for page in paginator.pages %}
|
||
|
{% include "article.html" %}
|
||
|
{% endfor %}
|
||
|
</main>
|
||
|
{% endblock %}
|