Skip to content

Latest commit

 

History

History
55 lines (50 loc) · 1.56 KB

index.md

File metadata and controls

55 lines (50 loc) · 1.56 KB
layout
home
{%- if page.title -%}

{{ page.title }}

{%- endif -%}
{%- if paginator.posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
    {%- for post in paginator.posts -%}
    <li>
        <span class="post-meta">{{ post.date | date: site.date_format }}</span>
        <h3>
            <a class="post-link"
               href="{{ post.url | relative_url }}">
                {{ post.title | escape }}
            </a>
        </h3>
        {{ post.excerpt }}
    </li>
    {%- endfor -%}
</ul>

<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 -%}