Jekyll - Get the date of the last post -
i know can post date post.date
.
but, how can date of last post or date related last time website generated?
i want echo this: last update: {{ getdate }}
you want site.time
, show exact date/time when site last generated:
2015-07-22 17:11:02 +0200
to output exact date format want, can use liquid's date formatting.
for example, {{ site.time | date: "%-d %b %y"}}
generate 22 july 2015
.
Comments
Post a Comment