Sha256: bd3ec641df093322a739f9ebcc553266117592254b3c7d76194b1c51fd052742

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

---
layout: default
---

{{ content }}

<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>
      {% if post.description %}
        {{ post.description }}
      {% else %}
        {{ post.excerpt | strip_html }}
      {% endif %}
    </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

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-scaffold-1.3.0 _layouts/home.html
jekyll-theme-scaffold-1.2.0 _layouts/home.html