jsw0528/jekyll-cli

View on GitHub
templates/index.html

Summary

Maintainability
Test Coverage
---
layout: default
title: Your New Jekyll Site
---

{% for post in site.posts %}
<article class="entry">
  <header>
    <h1 class="entry-title">
      <a href="{{ post.url }}">{{ post.title }}</a>
    </h1>
    <p class="entry-meta">
      <time>{{ post.date | date: '%Y/%m/%d %A' }}</time>
    </p>
  </header>

  {% assign fragments = post.content | split: site.excerpt_separator %}
  {% assign size = fragments | size %}

  {{ fragments | first }}

  {% if size > 1 %}<p><a href="{{ post.url }}">Continue read &rarr;</a></p>{% endif %}
</article>
{% endfor %}

{% include pagination.html %}