Skip to content

Latest commit

 

History

History
63 lines (55 loc) · 1.82 KB

blog.markdown

File metadata and controls

63 lines (55 loc) · 1.82 KB
title layout
Blog
default
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-153197216-1"></script>

{% if site.paginate %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %}

{%- if posts.size > 0 -%} {%- if page.list_title -%}

{{ page.list_title }}

{%- endif -%}
    {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} {%- for post in posts -%}
  • {{ post.date | date: date_format }}
    {%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%}
  • {%- endfor -%}

{% if site.paginate %}
  <div class="pager">
    <ul class="pagination">
    {%- if paginator.previous_page %}
      <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
    {%- else %}
      <li><div class="pager-edge">•</div></li>
    {%- endif %}
      <li><div class="current-page">{{ paginator.page }}</div></li>
    {%- if paginator.next_page %}
      <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
    {%- else %}
      <li><div class="pager-edge">•</div></li>
    {%- endif %}
    </ul>
  </div>
{%- endif %}

{%- endif -%}