From 09daca6b7d3cdd62ba67eae2c8b14dd588eb1e12 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 31 Dec 2017 12:05:20 +0000 Subject: [PATCH] Add support for Chrome theme color See https://developers.google.com/web/fundamentals/design-and-ux/browser-customization/#meta_theme_color_for_chrome_and_opera Close #402 --- layouts/partials/header.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5f28e8ba..80b5e2ff 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -18,6 +18,9 @@ {{ $scr := .Scratch }} {{ partial "css/parse_theme.css" . }} {{ $sri := .Site.Data.sri }} + {{ if ne ($scr.Get "primary") "#fff" }} + + {{ end }} {{/* Default to enabling highlighting, but allow the user to override it in .Params or .Site.Params. Use $scr to store "highlight_enabled", so that we can read it again in footer.html. */}} {{ $scr.Set "highlight_enabled" true }}