40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
|
{% macro list_pages() %}
|
||
|
<section class="posts">
|
||
|
|
||
|
{%- for page in paginator.pages -%}
|
||
|
|
||
|
<div class="post on-list">
|
||
|
<header>
|
||
|
<h1 class="post-title">
|
||
|
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||
|
</h1>
|
||
|
</header>
|
||
|
|
||
|
|
||
|
{{ posts::meta(page=page, author=config.extra.show_author) }}
|
||
|
|
||
|
{#- NOTE -#}
|
||
|
{#- -------------------------------- -#}
|
||
|
{#- Skipping the Cover page implementation. Not included/covered for now. -#}
|
||
|
|
||
|
<div class="post-content">
|
||
|
{% if page.description -%}
|
||
|
{{ page.description }}
|
||
|
{#- end if-check for description -#}
|
||
|
{% elif page.summary -%}
|
||
|
{{ page.summary | safe }}
|
||
|
{% endif -%}
|
||
|
</div>
|
||
|
{% if page.description or page.summary -%}
|
||
|
<div>
|
||
|
<a class="read-more button" href="{{ page.permalink }}">{{ config.extra.read_more }} →</a>
|
||
|
</div>
|
||
|
{% endif -%}
|
||
|
</div>
|
||
|
{# End of pagination for-loop #}
|
||
|
{%- endfor -%}
|
||
|
{#- I don't put pagination here like Terminal does. I don't like how
|
||
|
the buttons move with the size of post entries in the content div. -#}
|
||
|
</section>
|
||
|
{% endmacro list_pages %}
|