Commit 97229d6a authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Add ability to add colour-theme overriding from frontmatter

Rename colour param to colourTheme for clarity.
Towards #114
parent 9f6d17f5
......@@ -4,6 +4,13 @@
{{- $colourTheme := "lavender-blue" -}}
{{- /* override with chosen theme colour */ -}}
{{- $colourTheme = $.Site.Params.colour -}}
{{- $colourTheme = $.Site.Params.colourTheme -}}
{{- /* if colourTheme is set in post frontmatter (or cascaded from section’s _index.md frontmatter), use that instead: */ -}}
{{- if .Params.colourTheme -}}
{{ $colourTheme = .Params.colourTheme }}
{{- end -}}
{{- return $colourTheme -}}
\ 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