a0bd0073bb fix: reading time not displaying in article/components/details partial (#1278)
Fix reading time not displaying due to .Site context in dict partial

The details.html partial receives a dict context via:
  partial "article/components/details" (dict "Page" $Page "IsList" $IsList)

When the dot context is a dict, .Site resolves to nil, so
.Site.Params.article.readingTime always returns empty/false,
causing the reading time to never display.

Lines 40 and 67 of the same file already correctly use
$Page.Site.Params — this fixes line 31 to be consistent.

Co-authored-by: delize <4028612+delize@users.noreply.github.com>
2026-03-04 11:58:09 +01:00
2026-02-19 17:54:42 +01:00
2026-01-25 23:42:28 +01:00
2026-02-19 17:50:48 +01:00
2020-09-13 12:24:07 +02:00
2020-08-22 13:20:08 +02:00
2026-02-17 19:20:09 +01:00

image

Hugo Theme Stack

logo

Card-style Hugo theme designed for bloggers.

Quickstart

Use this template: CaiJimmy/hugo-theme-stack-starter

Demo

Check demo.stack.cai.im

Documentation

Licensed under the GNU General Public License v3.0

Please do not remove the "Theme Stack designed by Jimmy" text and link.

If you want to port this theme to another blogging platform, please let me know🙏.

S
Description
No description provided
Readme GPL-3.0
1.8 MiB
Languages
HTML 39.5%
SCSS 34%
TypeScript 25.4%
Shell 1.1%