docspell/website/site/templates/section.html
2020-07-30 20:33:26 +02:00

84 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docspell: {{ section.title }}</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<section class="hero is-info is-small">
<div class="hero-head">
{% include "navbar.html" %}
</div>
<div class="hero-body">
<h1 class="title">
{{ section.title }}
</h1>
<h2 class="subtitle">
Docspell Documentation
</h2>
</div>
</section>
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs">
<ul>
{% for parent in section.ancestors %}
{% set s = get_section(path = parent, metadata_only = true) %}
<li>
<a href="{{ s.permalink }}">{{ s.title }}</a>
</li>
{% endfor %}
<li>
<a href="{{ section.permalink }}">{{ section.title }}</a>
</li>
</ul>
</nav>
{% if section.extra.mktoc %}
<section class="section pt-2">
<div class="columns is-desktop">
<div class="column is-3">
<div class="menu">
<ul class="menu-list">
{% for header in section.toc %}
<li>
<a href="{{ header.permalink }}">
{{ header.title }}
</a>
<ul>
{% for subhead in header.children %}
<li>
<a href="{{ subhead.permalink }}">
{{ subhead.title }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="column is-9">
<div class="content">
{{ section.content | safe }}
</div>
</div>
</div>
</section>
{% endif %}
{% if not section.extra.mktoc %}
<section class="section pt-2">
<div class="content">
{{ section.content | safe }}
</div>
</section>
{% endif %}
{% include "footer.html" %}
</body>
</html>