Sha256: 7cdd9bafcfa9430139c4d50b95509a90bbc22cc81782f7d0e188036b9702ea54

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

---
layout: page
---

{{ content }}

<hr/>

{% if page.categories %}
	{% assign categories =  page.categories %}
{% else %}
	{% capture site_cats %}{% for cat in site.categories %}{{ cat | first | downcase }}|{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
	{% assign words = site_cats | split:',' | sort %}
	{% capture sorted %}{% for pair in words %}{{pair | split:'|' | last }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
	{% assign categories = sorted | split:',' %}
{% endif %}

<div class="posts-list">
	{% for category in categories %}
		{% assign category_page = nil %}
		{% for page in site.pages %}
			{% unless page.layout == 'category' %}
				{% continue %}
			{% endunless %}
			{% if page.category %}
				{% if page.category == category %}
					{% assign category_page = page %}
					{% break %}
				{% else %}
					{% continue %}
				{% endif %}
			{% endif %}
			{% if page.title == category %}
				{% assign category_page = page %}
				{% break %}
			{% endif %}
		{% endfor %}
		{% unless category_page %}
			{% continue %}
		{% endunless %}
		{% include category-list-entry.html category_page=category_page category=category %}
	{% endfor %}
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-harveynick-lagrange-3.0.3 _layouts/categories.html