aboutsummaryrefslogtreecommitdiffstats
path: root/aboutwilson/templates/article.html
diff options
context:
space:
mode:
authorKura <kura@kura.io>2014-08-13 13:53:13 +0100
committerKura <kura@kura.io>2014-08-13 13:53:13 +0100
commita928687830876af8c919606bae47195af65bc82d (patch)
treed2c21b808e1244f010396b5f40d57f66b9036564 /aboutwilson/templates/article.html
parentd977b524fddbeddd06374c85a070c54110c76a14 (diff)
parentd404e2fe5b8c57c473c6250b8decbf5ac5b45e64 (diff)
downloadpelican-themes-a928687830876af8c919606bae47195af65bc82d.tar.gz
Merge pull request #241 from wilsonfreitas/master
Added new theme aboutwilson
Diffstat (limited to 'aboutwilson/templates/article.html')
-rw-r--r--aboutwilson/templates/article.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/aboutwilson/templates/article.html b/aboutwilson/templates/article.html
new file mode 100644
index 0000000..73dd6f4
--- /dev/null
+++ b/aboutwilson/templates/article.html
@@ -0,0 +1,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 %}