Sha256: 5cd2cc22d3efc6aceac5d934381f046863465d12591079b9907ae6060a85fc8b

Contents?: true

Size: 1.48 KB

Versions: 7

Compression:

Stored size: 1.48 KB

Contents

---
layout: default
---

<div class="home">

  {{ content }}

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

  {%- if posts.size > 0 -%}
    <ul class="post-list">
      {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
      {%- for post in posts -%}
      <li>
        <h2>
          <a class="post-link" href="{{ post.url | relative_url }}">
            {{ post.title | escape }}
          </a>
        </h2>
        <span class="post-meta">{{ post.date | date: date_format }}</span>
        {%- if post.show_excerpts != false -%}
          <div class="post-excerpt">{{ post.excerpt }}</div>
        {%- endif -%}
      </li>
      {%- endfor -%}
    </ul>

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

</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-theme-hamilton-3.0.0 _layouts/home.html
jekyll-theme-hamilton-2.0.0 _layouts/home.html
jekyll-theme-hamilton-1.4.4 _layouts/home.html
jekyll-theme-hamilton-1.4.3 _layouts/home.html
jekyll-theme-hamilton-1.4.2 _layouts/home.html
jekyll-theme-hamilton-1.4.1 _layouts/home.html
jekyll-theme-hamilton-1.4.0 _layouts/home.html