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

Update templates

Update the templates to remove the excessive itemprop tags as it really
is not a good idea.  Cleanup a few minor things.
This commit is contained in:
2013-11-09 15:57:26 -05:00
parent c8803ae2d9
commit eca067ae67
14 changed files with 55 additions and 102 deletions

View File

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