hacks-guide-minimal-mistake.../_includes/archive-list-single.html

8 lines
825 B
HTML
Raw Normal View History

2016-03-10 19:06:59 +01:00
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
{% if post.link %}
2016-03-10 19:06:59 +01:00
<h2 class="archive__item-title link-post" itemprop="headline"><a href="{{ base_path }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a> <a href="{{ post.link }}" target="_blank"><i class="fa fa-link"></i></a></h2>
{% else %}
2016-03-10 19:06:59 +01:00
<h2 class="archive__item-title" itemprop="headline"><a href="{{ base_path }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a></h2>
{% endif %}
2016-03-10 19:06:59 +01:00
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
</article>