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

18 lines
393 B
HTML

{% if include.filter %}
{% assign filter = include.filter %}
{% endif %}
{% assign split_mark = '<|>' %}
{% assign dates = '' %}
{% for post in site.posts %}
{% assign name = post.date | date: filter %}
{% assign dates = dates | append: split_mark | append: name %}
{% endfor %}
{% assign return = dates
| remove_first: split_mark
| split: split_mark
| sort: self
| uniq %}