summaryrefslogtreecommitdiff
path: root/_includes/functions/get_categories.html
blob: babb7a0ff8fa9f5a1f9b781aeef3946c0010c70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{% assign split_mark = '<|>' %}

{% assign categories = '' %}
{% for category in site.categories %}
  {% assign name = category | first %}
  {% assign categories = categories | append: split_mark  | append: name %}
{% endfor %}

{% assign return = categories
  | remove_first: split_mark
  | split: split_mark
  | sort: self %}