personal-site/themes/theme/templates/article.html

64 lines
1.4 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2022-10-04 06:55:41 +00:00
{% block title %}{{ article.title|striptags }} | Tanner's Site{% endblock %}
2020-09-04 00:40:33 +00:00
{% block head %}
2022-07-15 21:04:24 +00:00
{{ super() }}
2020-09-04 00:40:33 +00:00
{% if article.date %}
<meta name="date" content="{{article.date}}" />
{% endif %}
{% if article.summary %}
<meta name="description" content="{{article.summary|striptags}}" />
<meta name="summary" content="{{article.summary|striptags}}" />
{% endif %}
{% if article.category %}
<meta name="category" content="{{article.category}}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
2023-10-19 19:22:22 +00:00
{% if article.image %}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://tannercollin.com/media/{{article.image}}" />
<meta property="og:image" content="https://tannercollin.com/media/{{article.image}}" />
{% endif %}
2020-09-04 00:40:33 +00:00
{% endblock %}
{% block content %}
2022-07-15 21:04:24 +00:00
<div class="content">
<header>
<h1>{{ article.title }}</h1>
<div class="summary">
{{ article.summary }}
</div>
<p class="metadata">
{{ article.locale_date }}
{% if article.modified %}
— updated {{ article.locale_modified }}
{% endif %}
</p>
</header>
<hr />
<article>
{% if article.nofilter %}
<div class="nofilter">
{% endif %}
2022-07-15 21:04:24 +00:00
{{ article.content }}
{% if article.nofilter %}
</div>
{% endif %}
2022-07-15 21:04:24 +00:00
</article>
2021-04-09 05:17:51 +00:00
</div>
{% endblock %}
2023-01-15 19:02:17 +00:00