attila_pelican_theme/templates/partials/loop.html
Monica Powell be2c4c6ff5 Author casing (#5)
* added trailing slash to Home link - to properly handle root urls

* updated Home link on author page

* updated Home link on misc. pages

* switched from capitalize to title in order to properly capitalize two word names

* reverted URL changes to keep seperate from casing logic changes

* updated metatag logic to remove extraneous metatags on articles

* removed other changes. only author casing in this PR
2017-06-03 10:48:35 +05:30

39 lines
1.5 KiB
HTML

<div class="extra-pagination">
{% include "partials/pagination.html" %}
</div>
{% for article in articles_page.object_list %}
<article class="post">
<div class="inner">
<header class="post-header">
<h2 class="post-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
<span class="post-meta">
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author|title }}</a>
{% endfor %}
| <time datetime="{{ article.locale_date }}">{{ article.locale_date }}</time>
</span>
<div class="clear"></div>
</header>
{% if SHOW_FULL_ARTICLE %}
<section class="post-content">
{{ article.content }}
</section>
{% else %}
<section class="post-excerpt">
<p>
{% if article.has_summary %}
{{ article.summary }}
{% elif article.summary %}
{{ article.summary|striptags|truncate(250) }}
{% endif %}
</p>
</section>
{% endif %}
{% include 'partials/comments_count.html' %}
</div>
</article>
{% endfor %}
{% include "partials/pagination.html" %}