Skip to content
Snippets Groups Projects
Commit ec562adf authored by Emmanuel Godard's avatar Emmanuel Godard
Browse files

initial fork commit

parents
No related branches found
No related tags found
No related merge requests found
{% extends "base.html" %}
{% block html_lang %}{{ page.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%}
{% block content %}
<main>
<section>
<h1>{{ page.title }}</h1>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{{ page.content }}
{% if page.modified %}
<p>
Last updated: {{ page.locale_modified }}
</p>
{% endif %}
</section>
</main>
{% endblock %}
{% if DEFAULT_PAGINATION %}
<ul class="pagination">
{% if articles_page.has_previous() %}
<li><a href="{{ SITEURL }}/{{ page_name }}{{ '' }}.html"><span aria-hidden="true">&laquo;&laquo;</span></a>
</li>
<li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a></li>
{% endif %}
{% for page in range(1, articles_paginator.num_pages + 1) %}
{% if page == 1 and page >= (articles_page.number - 3) and page <= (articles_page.number) + 3 %}
<li class="{{ 'active' if page == articles_page.number else '' }}"><a
href="{{ SITEURL }}/{{ page_name }}{{ "" }}.html">{{ page }}</a></li>
{% elif page >= (articles_page.number - 3) and page <= (articles_page.number) + 3 %}
<li class="{{ 'active' if page == articles_page.number else '' }}"><a
href="{{ SITEURL }}/{{ page_name }}{{ page }}.html">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if articles_page.has_next() %}
<li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a></li>
<li><a href="{{ SITEURL }}/{{ page_name }}{{ articles_paginator.num_pages }}.html"><span aria-hidden="true">&raquo;&raquo;</span></a>
</li>
{% endif %}
</ul>
{% endif %}
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} Archives{% endblock %}
{% block content %}
<main>
<section id="list">
<h2>Archives for {{ period | reverse | join(' ') }}</h2>
<ul>
{% for article in dates %}
<li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
<time>{{ article.date|strftime('%b %Y') }}</time>
</li>
{% endfor %}
</ul>
</section>
</main>
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
{% block content %}
<main>
<section id="list">
<h2>#{{ tag }}</h2>
<ul>
{% for article in dates %}
<li>
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
<time>{{ article.date|strftime('%b %Y') }}</time>
</li>
{% endfor %}
</ul>
</section>
</main>
{% endblock %}
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Tags{% endblock %}
{% block content %}
<main>
<section id="list">
<h2>Tags for {{ SITENAME }}</h2>
<ul>
{% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
</section>
</main>
{% endblock %}
{% macro translations_for(article) %}
{% if article.translations %}
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment