blog/_includes/functions/get_categories.html

13 lines
328 B
HTML
Raw Normal View History

2019-09-11 06:19:34 +02:00
{% 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 %}