baseof : use partialCached for header and footer

ref: https://gohugo.io/functions/partialcached/
This commit is contained in:
Aditya Telange 2020-08-28 17:34:55 +05:30
parent fb4f686771
commit 47126e37d5
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -8,12 +8,12 @@
<body
class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}"
id="top">
{{- partial "header.html" . }}
{{- partialCached "header.html" . }}
<main class="main">
{{- block "main" . }}
{{end }}
</main>
{{- partial "footer.html" . }}
{{- partialCached "footer.html" . }}
</body>
</html>