From 61eae5c5f9881cab29712f6e696085baa977e1f9 Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Wed, 11 Sep 2019 12:19:34 +0800 Subject: release: v1.0.0 --- _includes/functions/get_datetimes.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 _includes/functions/get_datetimes.html (limited to '_includes/functions/get_datetimes.html') diff --git a/_includes/functions/get_datetimes.html b/_includes/functions/get_datetimes.html new file mode 100644 index 0000000..4398fbf --- /dev/null +++ b/_includes/functions/get_datetimes.html @@ -0,0 +1,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 %} + -- cgit v1.2.3