diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-28 17:34:55 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-28 17:34:55 +0530 |
| commit | 47126e37d5196a2133a716f8f35dcc8311e75b1b (patch) | |
| tree | 157d9dda9ae772589d6a38935becdc695c821eeb /layouts/_default/baseof.html | |
| parent | fb4f6867714e1d66d204f1d54d3ba3f1c5ecaad4 (diff) | |
baseof : use partialCached for header and footer
ref: https://gohugo.io/functions/partialcached/
Diffstat (limited to 'layouts/_default/baseof.html')
| -rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 106f360..2470c2c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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>
\ No newline at end of file |
