pelican-website-ge/ge-theme/templates/article.html

68 lines
2.0 KiB
HTML
Raw Normal View History

2021-05-03 17:48:53 +02:00
{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
{% block head %}
{{ super() }}
2021-05-12 16:04:46 +02:00
<link rel="stylesheet" type="text/css" href="{{SITEURL}}/theme/css/article-styles.css">
2021-05-03 17:48:53 +02:00
{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %}
{{ translations.entry_hreflang(article) }}
{% endif %}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %}
{% block content %}
<section id="article-content">
<header>
<h2 class="article-entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
</header>
<footer class="post-info">
<time class="published" datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</time>
{% if article.modified %}
<time class="modified" datetime="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</time>
{% endif %}
{% if article.authors %}
2021-05-12 16:04:46 +02:00
<address class="vcard-author">
2021-05-03 17:48:53 +02:00
By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
2021-05-12 16:04:46 +02:00
<!-- {% if article.category %}-->
<!-- <div class="category">-->
<!-- Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>-->
<!-- </div>-->
<!-- {% endif %}-->
2021-05-03 17:48:53 +02:00
{% if article.tags %}
<div class="tags">
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %}
</div>
{% endif %}
2021-05-12 16:04:46 +02:00
</footer><br>
<!-- /.post-info -->
2021-05-03 17:48:53 +02:00
<div class="article-entry-content">
{{ article.content }}
</div>
</section>
{% endblock %}