Calcifer/theme/templates/article.html

34 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}
{% block extra_head %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% for author in article.authors %}
<meta name="author" content="{{ author }}">
{% endfor %}
{% if article.summary %}
<meta name="description" content="{{ article.summary|striptags }}" />
<meta property="og:description" content="{{ article.summary|striptags }}">
{% endif %}
{% if article.header %}
<meta property="og:image" content="{{ SITEURL }}{{ article.header }}">
<meta name="twitter:card" content="summary_large_image">
{% endif %}
<meta property="og:title" content="{{ article.title|striptags }}">
{% endblock extra_head %}
{% block content %}
<article class="post">
<div>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">{{article.title}}</a></h1>
{% include "article_info.html" %}
</div>
<div>
{{ article.content }}
</div>
</article>
{% endblock content %}