From d3ef531afdc579380c240806b538493815db4871 Mon Sep 17 00:00:00 2001 From: IJ Anderson Date: Mon, 31 Dec 2018 14:58:50 -0500 Subject: [PATCH 1/3] Switching mdlSecondary to mdlAccent in example config to match header.html switching --- exampleSite/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index eb869e8..63af55f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,7 +15,7 @@ MetaDataFormat = "yaml" description = "A place to publish my incomprehensible ramblings" #meta description image = "/images/avatar-192x210.png" #for frontpage profile card mdlPrimary = "grey" - mdlSecondary = "orange" + mdlAccent = "orange" website = "example.com" email = "Firstname@example.com" twitter = "https://twitter.com/firstname_lastname" From e90f3818a1e976f18a750bcd7e8f867ed00e48cc Mon Sep 17 00:00:00 2001 From: IJ Anderson Date: Mon, 31 Dec 2018 15:01:22 -0500 Subject: [PATCH 2/3] fixing mdlSecondary to mdlAccent --- exampleSite/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index eb869e8..63af55f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,7 +15,7 @@ MetaDataFormat = "yaml" description = "A place to publish my incomprehensible ramblings" #meta description image = "/images/avatar-192x210.png" #for frontpage profile card mdlPrimary = "grey" - mdlSecondary = "orange" + mdlAccent = "orange" website = "example.com" email = "Firstname@example.com" twitter = "https://twitter.com/firstname_lastname" From 15aa0e59ceee43fdc9c3c01c9f26bf80a559d4b9 Mon Sep 17 00:00:00 2001 From: IJ Anderson Date: Mon, 31 Dec 2018 15:04:50 -0500 Subject: [PATCH 3/3] if isset needs lowercase params for color customization --- layouts/partials/header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 906e069..53d32ca 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -31,12 +31,12 @@ - {{- if isset .Site.Params "mdlPrimary" }} + {{- if isset .Site.Params "mdlprimary" }} {{- $.Scratch.Set "mdlPrimary" .Site.Params.mdlPrimary }} {{- else }} {{- $.Scratch.Set "mdlPrimary" "grey" }} {{- end }} - {{- if isset .Site.Params "mdlAccent" }} + {{- if isset .Site.Params "mdlaccent" }} {{- $.Scratch.Set "mdlAccent" .Site.Params.mdlAccent }} {{- else }} {{- $.Scratch.Set "mdlAccent" "orange" }}