Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将我的网站从 Drupal 迁移到 Jekyll。在每篇文章的 YAML Front Matter 中,我都有创建它的时间戳。
{{ page.created }} => 1287199856
在 Liquid 中,我如何将其转换为:
2010-10-15 23:30:56 -0400
我不确定,但希望这有效
Page Created {{ page.created | date: "%F %H:%M:%S %z" }}
参考这个网站