mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-02 12:13:05 +00:00
theme: cache archetype.hugo #380
This commit is contained in:
parent
1c251f0790
commit
92919ac893
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{{- $page := .page }}
|
{{- $page := .page }}
|
||||||
{{- $content := .content }}
|
{{- $content := .content }}
|
||||||
{{- $outputFormat := .outputFormat }}
|
{{- $outputFormat := .outputFormat }}
|
||||||
{{- partial "archetype.hugo" (dict "hook" "article" "page" $page "parameter" (dict "page" $page "content" $content) "outputFormat" $outputFormat) }}
|
{{- $hook := "article" }}
|
||||||
|
{{- partialCached "archetype.hugo" (dict "hook" $hook "page" $page "parameter" (dict "page" $page "content" $content) "outputFormat" $outputFormat) $page.RelPermalink $outputFormat $hook }}
|
|
@ -113,7 +113,8 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<main id="body-inner" class="highlightable {{ partial "archetype.hugo" (dict "hook" "styleclass" "page" . "parameter" .) }}" tabindex="-1">
|
{{- $hook := "styleclass" }}
|
||||||
|
<main id="body-inner" class="highlightable {{ partialCached "archetype.hugo" (dict "hook" $hook "page" . "parameter" . "outputFormat" $outputFormat) .RelPermalink $outputFormat $hook }}" tabindex="-1">
|
||||||
<div class="flex-block-wrapper">
|
<div class="flex-block-wrapper">
|
||||||
<div id="head-tags">
|
<div id="head-tags">
|
||||||
{{- partial "tags.html" . }}
|
{{- partial "tags.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue