Sha256: 50b58f846a35f0e0c1d66109193e8a0c168a4a2d6ecf74b6ade8f14f0d9dc13f

Contents?: true

Size: 1.86 KB

Versions: 8

Compression:

Stored size: 1.86 KB

Contents

---
layout: base
---
{%- if site.paginate -%}
    {%- assign posts = paginator.posts -%}
  {%- else -%}
    {%- assign posts = site.posts -%}
{% endif %}
{%- assign date_format = site.termina-plex.date_format | default: "%d %b %Y" -%}
{%- assign blog_path = site.blog_path | default: "/blog" %}

<article class="postWrapper">
  <header class="postHeader">
    <h1>Blog Posts</h1>
  </header>

  {%- if posts.size > 0 -%}
  <div class="postsEntries">
    {%- for post in posts -%}
    <div class="postInfo">
      <h2 class="postTitle">
        <a class="postListLink" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
      </h2>
      {%- if post.date -%}
      <time class="postDate" datetime="{{ post.date | date: '%Y-%m-%d' }}">{{ post.date | date: date_format }}</time>
      {%- endif -%}
      {%- if site.show_excerpts -%}
      <div class="postExcerpt">
        {{ post.excerpt }}
      </div>
        {%- if post.content.size > post.excerpt.size -%}
        <div>
          <a href="{{ post.url | relative_url }}">(Read more...)</a>
        </div>
        {%- endif -%}
      {%- endif -%}
    </div>
    {%- endfor -%}
  </div>
  {%- endif -%}
</article>
<div class="clear"></div>

{% if site.paginate and paginator.total_pages > 1 %}
<div class="pagination">
  <ul class="paginationPages">
  {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
      <li>
        <div>
          <span>{{ page }}</span>
        </div>
      </li>
    {% elsif page == 1 %}
      <li>
        <div class="pageLinkActive">
          <a href="{{ blog_path | relative_url }}">{{ page }}</a>
        </div>
      </li>
    {% else %}
      <li>
        <div class="pageLinkActive">
          <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a>
        </div>
      </li>
    {% endif %}
  {% endfor %}
  </ul>
</div>
{%- endif %}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
termina-plex-0.2.1 _layouts/home.html
termina-plex-0.2.0 _layouts/home.html
termina-plex-0.1.8 _layouts/home.html
termina-plex-0.1.7 _layouts/home.html
termina-plex-0.1.6 _layouts/home.html
termina-plex-0.1.5.2 _layouts/home.html
termina-plex-0.1.5 _layouts/home.html
termina-plex-0.1.4 _layouts/home.html