dotfiles

My PC Dotfiles & Website

site/templates/macros/lists.html (758B)


 1{% macro list_pages() %} {%- if paginator -%}
 2<section class="posts">
 3  {%- for page in paginator.pages -%}
 4  <div class="post">
 5    <header>
 6      <h1 class="post-title">
 7        <a href="{{ page.permalink }}">{{ page.title }}</a>
 8      </h1>
 9    </header>
10
11    {{ posts::meta(page=page) }}
12
13    <div class="post-content post-in-list">
14      {% if page.description -%} {{ page.description }} {% elif page.summary -%}
15      {{ page.summary | safe }} {% endif -%}
16    </div>
17    {% if page.description or page.summary -%}
18    <div>
19      <i
20        ><a class="read-more button" href="{{ page.permalink }}"
21          >Read More -></a
22        ></i
23      >
24    </div>
25    {% endif -%}
26  </div>
27  {%- endfor -%}
28</section>
29{%- endif -%} {% endmacro list_pages %}