Sha256: 03c73cccd96e977a0548957ceab4f74b05f3b6895974b1b6815b2cb0e300c3fd

Contents?: true

Size: 890 Bytes

Versions: 16

Compression:

Stored size: 890 Bytes

Contents

{% for category in site.categories %}
  {% assign category_name = category | first %}
  <section class="section  typeset">
    <h2 id="{{ category_name | slugify }}">{{ category_name }}</h2>
    <ul class="list  list--posts">
      {% for page in site.categories[category_name] %}
        {% assign has_categories = true %}
        <li class="item  item--post">
          <article class="article  article--post  typeset">
            <h3><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h3>
            {% include post-meta.html %}
            {{ page.excerpt | truncatewords: 60 | markdownify }}
          </article>
        </li>
      {% endfor %}
    </ul>
    {% unless forloop.last %}<hr/>{% endunless %}
  </section>
{% endfor %}

{% if has_categories != true %}
  <section class="section  typeset">
    <p>There are no categorised posts</p>
  </section>
{% endif %}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alembic-jekyll-theme-4.1.0 _includes/post-categories.html
alembic-jekyll-theme-4.0.0 _includes/post-categories.html
alembic-jekyll-theme-3.1.0 _includes/post-categories.html
alembic-jekyll-theme-3.0.14 _includes/post-categories.html
alembic-jekyll-theme-3.0.13 _includes/post-categories.html
alembic-jekyll-theme-3.0.12 _includes/post-categories.html
alembic-jekyll-theme-3.0.11 _includes/post-categories.html
alembic-jekyll-theme-3.0.10 _includes/post-categories.html
alembic-jekyll-theme-3.0.9 _includes/post-categories.html
alembic-jekyll-theme-3.0.8 _includes/post-categories.html
alembic-jekyll-theme-3.0.7 _includes/post-categories.html
alembic-jekyll-theme-3.0.6 _includes/post-categories.html
alembic-jekyll-theme-3.0.5 _includes/post-categories.html
alembic-jekyll-theme-3.0.4 _includes/post-categories.html
alembic-jekyll-theme-3.0.3 _includes/post-categories.html
alembic-jekyll-theme-3.0.2 _includes/post-categories.html