summaryrefslogtreecommitdiff
path: root/source/_layouts/category.html
blob: 8393bd615d85a495b9c3f7472629a9555ee0ac18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
layout: "default"
---

<h1>{{ page.title }}</h1>

{% assign by_letter = site.pages
  | where_exp: "item", "item.layout == 'concept'"
  | where_exp: "item", "item.categories contains page.title"
  | group_by_exp: "item", "item.title | truncate: 1, ''"
  | sort: "name"
%}

<p>
This is an alphabetical list of the concepts in this category.
</p>

<div style="text-align: center;">
&hyphen; 
{% for letter in by_letter %}
<a href="#{{ letter.name }}">{{ letter.name }}</a>
&hyphen; 
{% endfor %}
</div>

{% for letter in by_letter %}
<h2 id="{{ letter.name }}">{{ letter.name }}</h2>
<ul>
  {% assign items = letter.items | sort: "title" %}
  {% for item in items %}
  <li><a href="{{ item.url }}">{{ item.title }}</a></li>
  {% endfor %}
</ul>
{% endfor %}