aboutsummaryrefslogtreecommitdiffstats
path: root/aboutwilson/templates/article.html
blob: 73dd6f46ad10a3d0cc03d63c1cf9c3a7514af270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "base.html" %}
{% block description %}Title: {{ article.title }}; Date: {{ article.date|strftime('%Y-%m-%d') }}; Author: {{ article.author }}{% endblock %}
{% block title %}{{ article.title }} — {{ SITENAME }}{% endblock %}
{% block content %}
<div class="article" itemscope itemtype="http://schema.org/BlogPosting">
	<div class="text-center article-header">
		<h1 itemprop="name headline" class="article-title">{{ article.title }}</h1>
		<span itemprop="author" itemscope itemtype="http://schema.org/Person">
			<h4 itemprop="name">{{article.author or "Wilson Freitas"}}</h4>
		</span>
		<time datetime="{{ article.date.isoformat() }}" itemprop="datePublished">{{ article.locale_date }}</time>
	</div>
	{% if article.category %}
	<div>
		Category:
		<span itemprop="articleSection">
			<a href="{{ SITEURL }}/{{ article.category.url }}" rel="category">{{ article.category }}</a>
		</span>
	</div>
	{% endif %}
	{% if article.tags %} 
	<div>
		Tags:
		{% for tag in article.tags %}
		<span itemprop="keywords">
			<a href="{{ SITEURL }}/{{ tag.url }}" rel="tag">{{ tag }}</a>
		</span>
		{% endfor %}
	</div>
	{% endif %}
	<div itemprop="articleBody" class="article-body">{{ article.content }}</div>
	<hr>
	<h2>Comments</h2>
	{% include "twitter.html" %}
	{% include 'disqus.html' %}
</div>
{% endblock %}