{% extends "water/templates/page.html" %}

{% block main %}
    <article class="h-entry">
        <div>
            <h1 class="p-name">{{ page.title }}</h1>
            <a class="u-url" hidden aria-hidden="true" href="{{ page.permalink }}">Permalink</a>
            {%- if page.date -%}<time class="dt-published" datetime="{{ page.date }}">📅&nbsp;{{ page.date | date(format=trans(key="dateFormat", lang=lang)) }}</time>{%- endif -%}
        </div>
        {% if page.taxonomies.skills %}
        <aside class="skills">
        👍 {{ trans(key="skills", lang=lang) }}{% for skill in page.taxonomies.skills %}<a href="{{ get_taxonomy_url(kind="skills", name=skill) }}">{{ skill }}</a>{% if not loop.last %}, {% endif %}{% endfor %}
        </aside>
        {% endif %}
        <div class="e-content">{{ page.content | safe }}</div>
    </article>
{% endblock %}
