Get today's date in Jekyll with Liquid markup

后端 未结 4 1252
失恋的感觉
失恋的感觉 2021-01-30 19:38

This (should) be easy, I think, but I\'m unable to get today\'s date to show in a Jekyll page using Liquid markup. According to the documentation, I should be able to do this to

4条回答
  •  清歌不尽
    2021-01-30 20:25

    {{ site.time }} represent the time the site did get updated it is a fixed date not a dynamic one.

    Such request require Javascript with Date.getTime() or Date.now() example:

    
    

提交回复
热议问题