style, templating, why copyleft, reads draft
This commit is contained in:
parent
bfa1c3f812
commit
2b0484528b
10 changed files with 224 additions and 19 deletions
|
|
@ -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 %}>{% endif %}
|
||||
{% endfor %}
|
||||
</span>
|
||||
<br/>
|
||||
</nav>
|
||||
<span id="langs">
|
||||
{{lang}} –
|
||||
|
||||
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue