diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-06-19 14:44:10 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-06-19 14:44:10 +0200 |
commit | e0a989555b6bef9173088da9e0b980338a88ce0c (patch) | |
tree | 3e35bc65664e881d62cf14970d482884b80289f7 /theme/bulma/templates/page.html | |
parent | 3b3c4db1bdd29b46a23051fc5427197ce2831764 (diff) |
Swiched the theme to bulma-css
Diffstat (limited to 'theme/bulma/templates/page.html')
-rw-r--r-- | theme/bulma/templates/page.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/theme/bulma/templates/page.html b/theme/bulma/templates/page.html new file mode 100644 index 0000000..a4eacf8 --- /dev/null +++ b/theme/bulma/templates/page.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block meta %} +{{ super() }} + +{% if page.translations -%} +<link rel="alternate" href="{{ SITEURL }}/{{ page.url }}" hreflang="{{ page.lang }}" /> +{% for p in page.translations %} +<link rel="alternate" href="{{ SITEURL }}/{{ p.url }}" hreflang="{{ p.lang }}" /> +{% endfor %} +{% endif %} +{% endblock %} + +{% block title %} – {{ page.title|striptags|escape }}{% endblock %} + +{% block content %} +<article class="single content"> + <header> + {% import 'partial/translations.html' as translations with context %} + {{ translations.translations_for(page) }} + <h1 id="{{ page.slug }}">{{ page.title }}</h1> + </header> + <div> + {% block before_content %}{% endblock %} + {% block page_content %}{{ page.content }}{% endblock %} + {% block after_content %}{% endblock %} + </div> +</article> +{% endblock %} |