redo home page
This commit is contained in:
20
overrides/home.html
Normal file
20
overrides/home.html
Normal file
@ -0,0 +1,20 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user