summaryrefslogtreecommitdiff
path: root/_includes/functions/get_datetimes.html
blob: f5b4d7efaa433116f36b1a5054e661f91cb06d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% if include.params.filter %}
  {% assign filter = include.params.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 %}