blog/_includes/functions/get_categories.html
2019-09-11 12:21:17 +08:00

12 lines
328 B
HTML

{% 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 %}