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

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

javascript - Linking from page A to a specific iframe on page B -

java - Two interface have same method name with different return type -