Sha256: d02848a9a36fc0ff04e81c47635b20c2a6fbcae4083218691c31915d8402d13c

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

---
layout: default
---

{{ content }}

<div class="separator">posts</div>
<div class="posts">
  {%- if paginator -%}
    {%- assign posts = paginator.posts -%}
  {%- else -%}
    {%- assign posts = site.posts -%}
  {%- endif -%}
  {% for post in posts %}
  <section class="post post-card">
    <h2 class="post-title">
      <a href="{{ post.url | relative_url }}">
        {{ post.title }}
      </a>
    </h2>

    <div class="post-meta">
      <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
      {%- if jekyll.environment == "production" and site.disqus and post.comments != false -%}
        <span> • </span>
        <a class="comment-count" href="{{ post.url | relative_url }}#disqus_thread">
          <span class="disqus-comment-count" data-disqus-url="{{ post.url | absolute_url }}"></span>
        </a>
      {%- endif -%}
    </div>

    <p>{{ post.excerpt | strip_html }}</p>
  </section>
  {% endfor %}
</div>

{%- if jekyll.environment == "production" and site.disqus -%}
  <script id="dsq-count-scr" src="//{{ site.disqus }}.disqus.com/count.js" async></script>
{%- endif -%}

{% if paginator %}
<div class="pagination">
  {% if paginator.next_page %}
    <a class="pagination-item older" href="{{ paginator.next_page_path | relative_url }}">Older</a>
  {% else %}
    <span class="pagination-item older">Older</span>
  {% endif %}
  {% if paginator.previous_page %}
    <a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: relative_url }}">Newer</a>
  {% else %}
    <span class="pagination-item newer">Newer</span>
  {% endif %}
</div>
{% endif %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-scaffold-0.1.0 _layouts/home.html