1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-02-01 09:31:38 +00:00

Update templates to include microformat support

The templates now include microformatting from schema.org.
The title and content_title blocks are no longer in most templates.
This updates the progess on issue #1
This commit is contained in:
2013-07-30 14:58:58 -04:00
parent 9f22128702
commit 0d53dc55d4
11 changed files with 50 additions and 40 deletions

View File

@@ -1,15 +1,16 @@
<li class="row">
<li class="row" itemprop="itemListElement" itemscope itemtype="http://schema.org/Article">
<div class="article">
<div class="small-4 columns">
{% if article.image %}
<a class="th" href="{{ SITEURL }}/{{ article.url }}"><img src="{{ SITEURL }}/static/{{article.image}}"/></a>
<a class="th" href="{{ SITEURL }}/{{ article.url }}"><img src="{{ SITEURL }}/static/{{article.image}}" itemprop="image" /></a>
{% else %}
<a class="th" href="{{ SITEURL }}/{{ article.url }}"><img src="{{ SITEURL }}/{{ FAVICON }}"/></a>
{% endif %}
</div>
<div class="small-12 columns">
<header>
<h3><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title|title }}</a></h3>
<h3 itemprop="headline"><a href="{{ SITEURL }}/{{ article.url }}" itemprop="url">{{ article.title|title }}</a></h3>
<meta itemprop="name" content="{{ article.title }}"/>
{% if not category %}
<div><span>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></span></div>
{% endif %}
@@ -30,9 +31,9 @@
</div>
<footer>
<ul class="no-bullet">
<li>Published by <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a> on: <abbr class="published" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr></li>
<li>Published by <span itemprop="author" itemscope itemtype="http://schema.org/Person"><a href="{{ SITEURL }}/{{ article.author.url }}" itemprop="url"><span itemprop="name">{{ article.author }}</span></a></span> on: <abbr class="published" title="{{ article.date.isoformat() }}" itemprop="datePublished">{{ article.locale_date }}</abbr></li>
{% if article.modified %}
<li>Last Modified on: <abbr title="{{ article.modified }}">{{ article.modified }}</abbr></li>
<li>Last Modified on: <abbr title="{{ article.modified }}" itemprop="dateModified">{{ article.modified }}</abbr></li>
{% endif %}
</ul>
</footer>