Make use of partialCached for cookiconsent and math.

This commit is contained in:
Fredrik Jonsson 2023-03-17 20:07:13 +01:00
commit 9a8fc75e1f

View file

@ -10,7 +10,7 @@
{{ partial "meta_json_ld.html" . }} {{ partial "meta_json_ld.html" . }}
{{ partial "scripts.html" . }} {{ partial "scripts.html" . }}
{{ partialCached "tracking.html" . }} {{ partialCached "tracking.html" . }}
{{ if $.Param "math" }}{{ partial "math.html" . }}{{ end -}} {{ if $.Param "math" }}{{ partialCached "math.html" . }}{{ end -}}
</head> </head>
<body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}{{ with $.Param "bodyclass" }} {{ . }}{{ end }}"> <body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}{{ with $.Param "bodyclass" }} {{ . }}{{ end }}">
@ -44,7 +44,7 @@
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }} {{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
</footer> </footer>
{{ if $.Param "cookieconsent" }}{{ partial "cookieconsent.html" . }}{{ end -}} {{ if $.Param "cookieconsent" }}{{ partialCached "cookieconsent.html" . }}{{ end -}}
</div> </div>
</body> </body>
</html> </html>