improved static website

This commit is contained in:
Trilarion
2020-09-28 10:03:28 +02:00
parent 9d65ee912b
commit 2d52caf518
15 changed files with 273 additions and 191 deletions

13
code/html/macros.jinja Normal file
View File

@ -0,0 +1,13 @@
{% macro url(href, name) -%}
{% if href %}
<a href="{{ base['url_to'](href) }}">{{ name }}</a>
{% else %}
{{ name }}
{% endif %}
{%- endmacro %}
{% macro listing_field_title(title) -%}
{% if title %}
{{ title['name'] }}:
{% endif %}
{%- endmacro %}