Sha256: 430b73b87aa0d260f2fef68c8b9e1d29c5ba1d438a8525db2c0ef633204f032f
Contents?: true
Size: 1016 Bytes
Versions: 5
Compression:
Stored size: 1016 Bytes
Contents
--- layout: base --- {% assign category = site.featured_categories | where: "slug", page.slug | first %} {% if category %} {% assign posts = site.categories[page.slug] %} {% else %} {% assign tag = site.featured_tags | where: "slug", page.slug | first %} {% if tag %} {% assign posts = site.tags[page.slug] %} {% else %} {% assign posts = site.posts %} {% endif %} {% endif %} {% if page.title.size > 0 %} <header> <h1 class="page-title">{{ page.title }}</h1> {% include message.html text=page.description %} </header> <hr class="sr-only"/> {% endif %} {% for post in posts %} {% assign currentdate = post.date | date: "%Y" %} {% if currentdate != date %} {% unless forloop.first %}</ul>{% endunless %} <h2 id="y{{post.date | date: "%Y"}}" class="hr">{{ currentdate }}</h2> <ul class="related-posts"> {% assign date = currentdate %} {% endif %} {% include post-list-item.html post=post format="%d %b" %} {% if forloop.last %}</ul>{% endif %} {% endfor %}
Version data entries
5 entries across 5 versions & 1 rubygems