Add initial site config, content and copy of "simple" theme.

This commit is contained in:
Ben Sturmfels 2022-06-24 17:58:12 +10:00
commit b23276291f
No known key found for this signature in database
GPG key ID: 023C05E2C9C068F0
22 changed files with 754 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{% macro translations_for(article) %}
{% if article.translations %}
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}" hreflang="{{ translation.lang }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}
{% macro entry_hreflang(entry) %}
{% if entry.translations %}
{% for translation in entry.translations %}
<link rel="alternate" hreflang="{{ translation.lang }}" href="{{ SITEURL }}/{{ translation.url }}">
{% endfor %}
{% endif %}
{% endmacro %}