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