You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.2 KiB
HTML
68 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block html_lang %}{{ article.lang }}{% endblock %}
|
|
{% set current_lang = article.lang %}
|
|
|
|
{% block head %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/article.css" />
|
|
{% endblock %}
|
|
|
|
{% block title %}{{ super() }} — {{ multilang[article.category] }}{% endblock title %}
|
|
|
|
{% block body_class %}{{ article.category }}{% endblock %}
|
|
|
|
{% block fixed_content %}
|
|
|
|
{% include 'partials/moon-watch.html' %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block scroll_content %}
|
|
|
|
|
|
<section id="projects-section" class="data-section" data-box-title="{{ multilang.projects }}">
|
|
<a name="top-art" class="margin-anchor"></a>
|
|
<nav class="nav-projects mono">
|
|
<ul>
|
|
{# ---> list all the 'projects' article in the current language #}
|
|
{% for art in articles %}
|
|
{% if art.category == 'projects' %}
|
|
{% if current_lang == DEFAULT_LANG %}
|
|
<li {% if art == article %} class="active" {% endif %}>
|
|
<a href="{{ art.url }}#top-art">{{ art.title }}</a>
|
|
</li>
|
|
{% else %}
|
|
{% for translation in art.translations %}
|
|
{% if translation.lang == current_lang %}
|
|
<li {% if translation == article %} class="active" {% endif %}>
|
|
<a href="{{ translation.url }}#top-art" hreflang="{{ translation.lang }}">{{ translation.title }}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
</section>
|
|
|
|
<section id="{{ article.title }}-section" class="data-section" data-box-title="{{ article.title }}">
|
|
<div class="text-content moon-phased-typo">
|
|
{% if article.sections["main"] %}
|
|
{{ article.sections["main"] }}
|
|
{% else %}
|
|
{{ article.content }}
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
|
|
{% if article.sections["quotes"] %}
|
|
<section id="{{ article.title }}-quotes-section" class="data-section" data-box-title="{{ multilang.quotes }}">
|
|
<div class="text-content article-quotes moon-phased-typo">
|
|
{{ article.sections["quotes"] }}
|
|
</div>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endblock %} |