theme color param for meta tag

This commit is contained in:
zzossig 2020-02-18 19:05:28 +09:00
parent 812b14ad74
commit 7e4098210d
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,8 @@ description = "The Zzo theme for Hugo example site."
custom_css = []
custom_js = []
useFaviconGenerator = true # https://www.favicon-generator.org/
meta_image = ""
themecolor = ""
themeOptions = ["dark", "light", "hacker", "solarized", "kimbie"]
notAllowedTypesInHome = ["contact", "talks", "about", "showcase", "publication", "presentation", "resume"]

View File

@ -28,7 +28,12 @@
{{ end }}
{{ hugo.Generator }}
<meta name="msapplication-TileColor" content="{{ $.Param "themecolor" | default "#ffffff" }}">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="{{ $.Param "themecolor" | default "#ffffff" }}">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="{{ $.Param "themecolor" | default "#ffffff" }}">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="{{ $.Param "themecolor" | default "#ffffff" }}">
<link rel="canonical" href="{{ .Permalink | absLangURL }}">
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
{{ if $.Site.Params.useFaviconGenerator }}