From 90ddbd5051086761a1911c7c2803c93ca9cf96fd Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Mon, 19 Feb 2024 10:44:59 +0100 Subject: [PATCH] fix: title does not show pagination data This is caused by partialCached. It turns out that the `.RelPermalink` is the same for all pages generated by the paginator, so they will show the same title as the first page. closes https://github.com/CaiJimmy/hugo-theme-stack/issues/941 --- layouts/partials/head/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index be63710..c809636 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -5,7 +5,7 @@ {{ with .Params.Keywords }}{{ end }} -{{- $title := partialCached "data/title" . .RelPermalink -}} +{{- $title := partial "data/title" . -}} {{ $title }}