gergelypolonkai-web-jekyll/my_theme/templates/article.html

41 lines
1.4 KiB
HTML
Raw Permalink Normal View History

{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block extra_head %}
{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %}
{{ translations.entry_hreflang(article) }}
{% endif %}
{% endblock %}
{% block content %}
<section id="content" class="body">
<article>
<header>
<h1 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
</header>
<div class="entry-content">
{% include 'article_infos.html' %}
{{ article.content }}
</div>{# /.entry-content #}
</article>
<footer>
{% if article is defined and article in articles %}
{% set article_idx = articles.index(article) %}
{% if article_idx != 0 %}
{% set next_article = articles[article_idx - 1] %}
<a href="/{{ next_article.url }}" class="next">{{ next_article.title }} &rarr;</a>
{% endif %}
{% if article_idx + 1 != articles | length %}
{% set prev_article = articles[article_idx + 1] %}
<a href="/{{ prev_article.url }}" class="previous">&larr; {{ prev_article.title }}</a>
{% endif %}
{% endif %}
</footer>
</section>
{% endblock %}