Commit 10a4d99a authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Make colourTheme partial work better by disabling caching

parent e194f572
{{- /* returns $colourTheme */ -}}
{{- /* first set up default */ -}}
{{- $colourTheme := "lavender-blue" -}}
{{- /* first set up "stormy" as default */ -}}
{{- $colourTheme := "stormy" -}}
{{- /* override with chosen theme colour */ -}}
{{- $colourTheme = $.Site.Params.colour -}}
{{- $colourTheme = $.Site.Params.colour -}}
{{- /* if colourTheme is set in post frontmatter (or cascaded from section’s _index.md frontmatter), use that instead: */ -}}
{{- if .Params.colourTheme -}}
{{ $colourTheme = .Params.colourTheme }}
{{- if $.Params.colourTheme -}}
{{ $colourTheme = $.Params.colourTheme }}
{{- end -}}
......
......@@ -4,5 +4,5 @@
<meta name='robots' content='index, follow'>
{{- partial "head/feed-links.html" . }}
{{- partial "head/social-meta.html" . }}
{{- partialCached "head/favicons.html" . }}
{{- partial "head/favicons.html" . }}
{{- partialCached "head/css.html" . }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment