trents_blog/overrides/home.html

21 lines
700 B
HTML
Raw Permalink Normal View History

2021-09-10 20:26:47 -07:00
{% set blog_pages=[] %}
{% for p in pages %}
{% if p.page.meta.post %}
<div style="display: none">
{{ blog_pages.append(p.page) }}
</div>
{% endif %}
{% endfor %}
{% for pg in blog_pages | sort(attribute='meta.post', reverse=True) %}
<div>
<a href="{{ pg.abs_url }}" target="_blank" style="color: unset;">
<h2 style="margin-top: 0px; margin-bottom: 0px">{{ pg.title }}</h2>
<h3 style="margin-top: 0px; margin-bottom: 0px">Created by: {{ pg.meta.authors[0] }}</h3>
<p style="margin-top: 0px; margin-bottom: 0px">Tags: {{ pg.meta.tags }}</p>
<p style="margin-top: 0px; font-style: oblique">{{ pg.content | striptags | truncate(150) }}</p>
</a>
</div>
<hr>
{% endfor %}