Support favicon color theming (#260)

This commit is contained in:
Dave A-W
2020-04-26 23:58:15 +08:00
committed by GitHub
parent c4741cfecb
commit f8b84de3f8
6 changed files with 112 additions and 10 deletions

View File

@@ -1,6 +1,13 @@
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
{{- hugo.Generator -}}
<meta name="theme-color" content="#ffffff">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="application-name" content="{{ .Site.Params.app.title | default .Site.Title }}">
<meta name="apple-mobile-web-app-title" content="{{ .Site.Params.app.title | default .Site.Title }}">
{{- with .Site.Params.app.themeColor -}}
<meta name="theme-color" content="{{ . }}">
{{- end -}}
{{- with .Site.Params.app.tileColor -}}
<meta name="msapplication-TileColor" content="{{ . }}">
{{- end -}}