archive-single.html 1.2 KB

123456789101112131415161718192021222324252627282930
  1. {% if post.header.teaser %}
  2. {% capture teaser %}{{ post.header.teaser }}{% endcapture %}
  3. {% else %}
  4. {% assign teaser = site.teaser %}
  5. {% endif %}
  6. {% if post.id %}
  7. {% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %}
  8. {% else %}
  9. {% assign title = post.title %}
  10. {% endif %}
  11. <div class="{{ include.type | default: 'list' }}__item">
  12. <article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
  13. {% if include.type == "grid" and teaser %}
  14. <div class="archive__item-teaser">
  15. <img src="{{ teaser | relative_url }}" alt="">
  16. </div>
  17. {% endif %}
  18. <h2 class="archive__item-title no_toc" itemprop="headline">
  19. {% if post.link %}
  20. <a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
  21. {% else %}
  22. <a href="{{ post.url | relative_url }}" rel="permalink">{{ title }}</a>
  23. {% endif %}
  24. </h2>
  25. {% include page__meta.html type=include.type %}
  26. {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
  27. </article>
  28. </div>