Initial commit
This commit is contained in:
commit
05cd190c53
155 changed files with 49378 additions and 0 deletions
41
templates/blog.html
Normal file
41
templates/blog.html
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{page.title}} – {{ config.extra.sitename|safe }}{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
{% if page.extra.katex %}{{macros::katex()}}{% endif %}
|
||||
{% endblock head %}
|
||||
|
||||
{% block body %}
|
||||
<span 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/>
|
||||
<span id="langs">
|
||||
{{lang}} –
|
||||
|
||||
{% for t in page.translations %}
|
||||
{% if t.lang|default(value=config.default_language) != lang %}
|
||||
<a href="{{t.permalink|safe}}">{{t.lang|default(value=config.default_language)}}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</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>
|
||||
|
||||
<main>
|
||||
{{page.content | safe}}
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<hr/>
|
||||
<a rel="author" href="https://toot.aquilenet.fr/@tuxmain" title="Mastodon" target="_blank" class="mastodon-logo"><img alt="Mastodon" src="/img/mastodon-purple.svg"/></a><br/>
|
||||
<a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
|
||||
</footer>
|
||||
{% endblock body %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue