64 lines
1.4 KiB
HTML
64 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ article.title|striptags }} | Tanner's Site{% endblock %}
|
|
|
|
{% block head %}
|
|
{{ super() }}
|
|
|
|
{% 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 %}
|
|
|
|
{% 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 %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<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 %}
|
|
|
|
{{ article.content }}
|
|
|
|
{% if article.nofilter %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</article>
|
|
</div>
|
|
{% endblock %}
|
|
|