@@ -233,23 +233,46 @@ readingProgress:
233233# 1) Hugo localization tokens (recommended): ":date_full" / ":date_long" / ":date_medium" / ":date_short"
234234# Automatically localized based on the current language's locale
235235# (e.g., en → "January 2, 2006", zh-Hans → "2006年1月2日").
236+ # NOTE: ":date_medium" currently has an upstream bug under en-GB (month is omitted except September),
237+ # so the theme uses ":date_long" for places that previously used medium.
236238# 2) Go time layout string: reference time is "Mon Jan 2 15:04:05 MST 2006". Examples:
237239# "2006-01-02" → 2024-05-01
238240# "January 2, 2006" → May 1, 2024
239241# "2006年1月2日" → 2024年5月1日
240242# "Jan 2, 2006" → May 1, 2024
241243# "02 Jan 2006" → 01 May 2024
242- # Usage:
243- # long : Article detail page, homepage hero
244- # medium : List / card / timeline / JSON Feed
245- # short : Archive page, previous/next article
244+ # Usage (which variants the theme actually renders):
245+ # full : reserved for opt-in custom usage
246+ # long : article detail page, homepage hero, list / card / timeline / JSON Feed,
247+ # archive page, previous/next article (i.e. all theme-rendered dates)
248+ # medium : not used by the theme by default (kept here for user customization)
249+ # short : not used by the theme by default (kept here for user customization)
246250# Leave empty to keep the defaults below.
247251# To configure per language, override via languages.<lang>.params.dateFormat in languages.yaml.
248252dateFormat :
253+ full : " :date_full"
249254 long : " :date_long"
250255 medium : " :date_medium"
251256 short : " :date_short"
252257 # Custom examples:
253258 # long: "January 2, 2006"
254259 # medium: "2006-01-02"
255260 # short: "01/02"
261+
262+ # Time format (optional)
263+ #
264+ # Used by helpers/date.html when called with kind="time", e.g.:
265+ # {{ partial "helpers/date.html" (dict "date" .Date "variant" "short" "kind" "time") }}
266+ # Same value rules as dateFormat: either Hugo localization tokens
267+ # (":time_full" / ":time_long" / ":time_medium" / ":time_short") or a Go time layout
268+ # string (e.g. "15:04", "3:04 PM"). The theme does not render time values out of the
269+ # box; this block exists so users / custom partials can use it without extra config.
270+ # Per-language override is also supported via languages.<lang>.params.timeFormat.
271+ timeFormat :
272+ full : " :time_full"
273+ long : " :time_long"
274+ medium : " :time_medium"
275+ short : " :time_short"
276+ # Custom examples:
277+ # long: "15:04:05"
278+ # short: "3:04 PM"
0 commit comments