Files
pelican-hyde/templates/article.html
T
Floyd Hightower ba3949f07a Adding code to support tags
Fixes #1
2021-12-26 21:53:00 -03:00

32 lines
919 B
HTML

{% extends "base.html" %}
{% block metadata %}
<meta name="description" content="{% if article.description %}{{ article.description }}{% else %}{{ BIO }}{% endif %}">
<meta property="og:description" content="{% if article.description %}{{ article.description }}{% else %}{{ BIO }}{% endif %}">
<meta property="og:title" content="{{ article.title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
{% endblock %}
{% block content %}
<div class="post">
<h1 class="post-title">{{ article.title }}</h1>
<span class="post-date">{{ article.locale_date }}</span>
{{ article.content }}
{% if article.tags %}
<hr>
<p><b>Tags:</b></p>
<ul>
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% include 'fragments/disqus.html' %}
</div>
{% endblock %}