mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
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
This commit is contained in:
1 parent
f72cced47c
commit
09daca6b7d
1 file changed
+3
@@ -18,6 +18,9 @@
|
||||
{{ $scr := .Scratch }}
|
||||
{{ partial "css/parse_theme.css" . }}
|
||||
{{ $sri := .Site.Data.sri }}
|
||||
{{ if ne ($scr.Get "primary") "#fff" }}
|
||||
<meta name="theme-color" content="{{ $scr.Get "primary" }}">
|
||||
{{ 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 }}
|
||||
|
||||
Reference in new issue
Block a user