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

{% 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() }} &mdash; {{ multilang[article.category] }}{% endblock title %}
3 years ago
{% 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>
3 years ago
<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>
3 years ago
</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>
3 years ago
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
3 years ago
{% 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"] %}
3 years ago
<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"] }}
3 years ago
</div>
</section>
{% endif %}
{% endblock %}