style, templating, why copyleft, reads draft

This commit is contained in:
Pascal Engélibert 2022-10-11 22:11:26 +02:00
commit 2b0484528b
Signed by: tuxmain
GPG key ID: 3504BC6D362F7DCA
10 changed files with 224 additions and 19 deletions

View file

@ -1,20 +1,19 @@
{% extends "base.html" %}
{% block title %}{{page.title}} – {{ config.extra.sitename|safe }}{% endblock title %}
{% block title %}{{page.title|safe}} – {{ config.extra.sitename|safe }}{% endblock title %}
{% block head %}
{% if page.extra.katex %}{{macros::katex()}}{% endif %}
{% endblock head %}
{% block body %}
<span id="breadcrumb">
<nav id="breadcrumb">
{% for a in page.ancestors %}
{% set s = get_section(path=a) %}
<a href="{{s.permalink|safe}}">{{s.title}}</a>
{% if not loop.last %}&gt;{% endif %}
{% endfor %}
</span>
<br/>
</nav>
<span id="langs">
{{lang}} &#8211;
@ -26,8 +25,25 @@
</span>
<h1>{{page.title | safe}}</h1>
<small>{{page.date}}</small><br/>
<small>{% for tag in page.taxonomies.tags %}<a href="/{{macros::langurl()}}tags/{{tag}}">{{tag}}</a>{% if not loop.last %}, {% endif %}{% endfor %}</small>
<small class="article-date">{{page.date}}</small><br/>
<small class="article-tags">{% for tag in page.taxonomies.tags %}<a href="/{{macros::langurl()}}tags/{{tag}}">{{tag}}</a>{% if not loop.last %}, {% endif %}{% endfor %}</small>
{% if page.toc %}
<nav>
<ul class="toc">
{% for h2 in page.toc %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title | safe }}</a>
<ul>
{% for h3 in h2.children %}
<li><a href="{{ h3.permalink | safe }}">{{ h3.title | safe }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
<main>
{{page.content | safe}}