From 92919ac89311b72e203e2030945fc1bd92cee62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 13 Nov 2022 11:31:46 +0100 Subject: [PATCH] theme: cache archetype.hugo #380 --- layouts/partials/article.html | 3 ++- layouts/partials/header.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/article.html b/layouts/partials/article.html index 51ba66da08..f139df1d9c 100644 --- a/layouts/partials/article.html +++ b/layouts/partials/article.html @@ -1,4 +1,5 @@ {{- $page := .page }} {{- $content := .content }} {{- $outputFormat := .outputFormat }} -{{- partial "archetype.hugo" (dict "hook" "article" "page" $page "parameter" (dict "page" $page "content" $content) "outputFormat" $outputFormat) }} \ No newline at end of file +{{- $hook := "article" }} +{{- partialCached "archetype.hugo" (dict "hook" $hook "page" $page "parameter" (dict "page" $page "content" $content) "outputFormat" $outputFormat) $page.RelPermalink $outputFormat $hook }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 037be0a602..c0b31c9ec0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -113,7 +113,8 @@ {{- end }} -
+ {{- $hook := "styleclass" }} +
{{- partial "tags.html" . }}