forked from david-swift/duckling
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ section.title }}</h1>
|
|
|
|
{{ section.content | safe }}
|
|
|
|
{# <div class="sparkline">
|
|
{%- if paginator.pages -%}
|
|
{%- set pages = paginator.pages -%}
|
|
{%- elif section.pages -%}
|
|
{%- set pages = section.pages -%}
|
|
{%- else -%}
|
|
{%- set pages = term.pages -%}
|
|
{%- endif -%}
|
|
|
|
{%- for month, pages in pages | group_by(attribute="month") -%}
|
|
{%- set posts_per_bar = pages | length -%}
|
|
{%- set bar_height = pages | length * 10 -%}
|
|
<div style="--bar-height: {{ bar_height ~ '%' }}" title="{{ macros_translate::translate(key='posts', number=posts_per_bar, default='$NUMBER posts in total', language_strings=language_strings) }}"></div>
|
|
{%- endfor -%}
|
|
</div> #}
|
|
|
|
{% include "partials/subprojects.html" %}
|
|
|
|
{%- if paginator.pages -%}
|
|
<nav id="paginator">
|
|
{%- if paginator.previous -%}
|
|
<a id="paginator-previous" href="{{ paginator.previous }}">
|
|
<i class="icon"></i>
|
|
<div>{{ macros_translate::translate(key='previous', default='Previous', language_strings=language_strings) }}</div>
|
|
</a>
|
|
{%- endif -%}
|
|
|
|
<div></div>
|
|
|
|
{%- if paginator.next -%}
|
|
<a id="paginator-next" href="{{ paginator.next }}">
|
|
<div>{{ macros_translate::translate(key='next', default='Next', language_strings=language_strings) }}</div>
|
|
<i class="icon"></i>
|
|
</a>
|
|
{%- endif -%}
|
|
</nav>
|
|
{%- endif -%}
|
|
{% endblock content %}
|