diff options
author | Luke Francl <look@recursion.org> | 2019-11-09 21:58:38 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-11-10 11:00:02 +0100 |
commit | 70a1aa345b95bcf325f19c6e7184bcd6f885e454 (patch) | |
tree | fee67032d577cabd8eaf2da981e444be2de7fa4e /docs/content/en/news/0.59.0-relnotes/index.md | |
parent | cafecca440e495ec915cc6290fe09d2a343e9c95 (diff) |
Support Go time format strings in permalinks
In the vein of an ancient TODO about supporting custom date formatting with
strftime, this allows `:`-prefixed Go time format strings in permalink segments.
This allows users to customize date-based permalinks any way they need to.
For example, with a date of 2019-11-09, the permalink `/:06/:1/:2` will render
as `/19/11/9`.
See:
https://github.com/gohugoio/hugo/commit/07978e4a4922bc21c230fee65052232b829bd1ab#diff-0688a3b65c7f5d01aa216f8d9b57fd00R111-R112
https://discourse.gohugo.io/t/implementing-additional-date-formats-for-permalinks/17860
https://github.com/gohugoio/hugo/pull/6488
Diffstat (limited to 'docs/content/en/news/0.59.0-relnotes/index.md')
0 files changed, 0 insertions, 0 deletions