postlistitem.twig.example 656 B

1234567891011121314151617181920
  1. <article class="list">
  2. <a href="{{ page.url }}">
  3. <h2>{{ page.title }}</h2>
  4. </a>
  5. <aside class="clearfix">
  6. {% if page.meta.date is not empty %}
  7. <span class="date">{{ page.meta.date_formatted }}</span>
  8. {% endif %}
  9. {% if page.meta.author is not empty %}
  10. <span class="author">by {{ page.meta.author }}</span>
  11. {% endif %}
  12. {% for tag in page.meta.tags|split(',') %}
  13. <a class="tag" href="/tags?q={{ tag }}">#{{ tag }}</a>
  14. {% endfor %}
  15. </aside>
  16. <div>
  17. <p class="excerpt">{{ page.id|content|striptags|slice(0, 300) }}...</p>
  18. </div>
  19. </article>