Get today's date in Jekyll with Liquid markup

后端 未结 4 1249
失恋的感觉
失恋的感觉 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:21

    It didn't work for me either. It appears you've hit a current bug in the Ruby 1.9.3 support. There is a pull request that fixes the bug, but it's not incorporated yet. A workaround is listed, perhaps it will work for you:

    {{ site.time | date: '%y' }}
    

提交回复
热议问题