Sha256: f594688f9cb0a9c9c34fa2ea21533e3855965c9ec7e40fe4dfab7ed4d369ebce

Contents?: true

Size: 832 Bytes

Versions: 5

Compression:

Stored size: 832 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

5 entries across 5 versions & 1 rubygems

Version Path
alembic-jekyll-theme-3.0.1 _includes/post-categories.html
alembic-jekyll-theme-3.0.0 _includes/post-categories.html
alembic-jekyll-theme-2.3.1 _includes/post-categories.html
alembic-jekyll-theme-2.3 _includes/post-categories.html
alembic-jekyll-theme-2.2.5 _includes/post-categories.html