stuebinm
20082e969f
idea: write markdown, get a more-or-less readable with categories and search because no one wants to deal with wikis (or just use fd & rg locally, I guess). Add docs to `content/`; all subdirs of that need a _index.md file that defines the theme. Categories are just strings and can be defined ad-hoc; the search goes through all files in `content/` and subdirs based on a search index built by zola when building the site.
43 lines
1.8 KiB
HTML
43 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ config.extra.main_title }}</title>
|
|
<link rel="icon" type="image/png" href="favicon.png">
|
|
<link rel="alternate" type="application/atom+xml" title="Feed" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
|
|
<link rel="stylesheet" href="{{ get_url(path="style.css", trailing_slash=false) | safe }}">
|
|
<script src="{{ get_url(path="search_index.en.js", trailing_slash=false) | safe }}"></script>
|
|
<script src="{{ get_url(path="elasticlunr.min.js", trailing_slash=false) | safe }}"></script>
|
|
<script src="{{ get_url(path="search.js", trailing_slash=false) | safe }}"></script>
|
|
{% block head_extra %}
|
|
{% endblock head_extra %}
|
|
</head>
|
|
<body>
|
|
<div id="content">
|
|
<header style="height:10em">
|
|
<a href="{{config.base_url}}"><h2 style="float:left">{{ config.extra.main_title }}</h2></a>
|
|
<nav id="headernav" style="float:right">
|
|
{% for item in config.extra.main_menu %}
|
|
<a itemprop="url"
|
|
class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
|
|
href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
|
|
{{ item.name }}
|
|
</a>
|
|
{% endfor %}
|
|
<div id="searchbox">
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
{% block content %} {% endblock %}
|
|
|
|
<footer class="content" style="z-index: 200">
|
|
<div>
|
|
<a href="https://gitlab.infra4future.de/hacc/infra/docs-zola">Source in git</a> •
|
|
<a href="https://infra4future.de/impressum.html">Imprint</a>
|
|
</div>
|
|
</footer>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|