docspell/website/site/templates/section.html

101 lines
3.5 KiB
HTML
Raw Normal View History

2020-07-27 20:13:22 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2020-07-30 23:14:09 +00:00
{% include "meta.html" %}
<title>{{ section.title }} Docspell Documentation</title>
2020-07-27 20:13:22 +00:00
<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">
2020-07-30 20:27:10 +00:00
<div class="container">
<div class="content doc">
{{ section.content | safe }}
</div>
2020-07-27 20:13:22 +00:00
</div>
</div>
</div>
</section>
{% endif %}
{% if not section.extra.mktoc %}
<section class="section pt-2">
2020-07-30 20:27:10 +00:00
<div class="container">
<div class="content doc">
{{ section.content | safe }}
</div>
2020-07-27 20:13:22 +00:00
</div>
</section>
{% endif %}
{% include "footer.html" %}
</body>
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
<script>
(function(f, a, t, h, o, m){
a[h]=a[h]||function(){
(a[h].q=a[h].q||[]).push(arguments)
};
o=f.createElement('script'),
m=f.getElementsByTagName('script')[0];
o.async=1; o.src=t; o.id='fathom-script';
m.parentNode.insertBefore(o,m)
})(document, window, '//webstats.daheim.site/tracker.js', 'fathom');
fathom('set', 'siteId', 'OGJDF');
fathom('trackPageview');
</script>
<!-- / Fathom -->
2020-07-27 20:13:22 +00:00
</html>