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.

62 lines
1.9 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 %}
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 }}">
3 years ago
<a name="topp"></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 }}#topp">{{ 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 }}#topp" hreflang="{{ translation.lang }}">{{ translation.title }}</a>
</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">
{{ article.content }}
</div>
</section>
3 years ago
{% if article.quotes %}
<section id="{{ article.title }}-quotes-section" class="data-section" data-box-title="{{ multilang.quotes }}">
<div class="text-content article-quotes">
{{ article.quotes }}
</div>
</section>
{% endif %}
{% endblock %}