mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02: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:
parent
f72cced47c
commit
09daca6b7d
1 changed files with 3 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue