mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +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 }}
|
||||
{{- $content := .content }}
|
||||
{{- $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 }}
|
||||
</div>
|
||||
</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 id="head-tags">
|
||||
{{- partial "tags.html" . }}
|
||||
|
|
Loading…
Reference in a new issue