diff --git a/_includes/update-list.html b/_includes/update-list.html index cdeebeb..93684c3 100644 --- a/_includes/update-list.html +++ b/_includes/update-list.html @@ -1,16 +1,17 @@ - + {% assign MAX_SIZE = 5 %} {% assign all_list = '' | split: '' %} {% for post in site.posts %} - {% if post.last_modified_at and post.last_modified_at != post.date %} - {% capture elem %} - {{- post.last_modified_at | date: "%Y%m%d%H%M%S" -}}::{{- forloop.index0 -}} - {% endcapture %} - {% assign all_list = all_list | push: elem %} - {% endif %} + {% assign datetime = post.last_modified_at | default: post.date %} + + {% capture elem %} + {{- datetime | date: "%Y%m%d%H%M%S" -}}::{{- forloop.index0 -}} + {% endcapture %} + + {% assign all_list = all_list | push: elem %} {% endfor %} {% assign all_list = all_list | sort | reverse %}