Allow setting cutom meta `theme-color` and `msapplication-TileColor`

fixes: #577

Usage:
  In Site Params:
    Params:
      assets:
        theme_color: color
        msapplication_TileColor: color
This commit is contained in:
Aditya Telange 2021-10-30 19:40:11 +05:30
parent 2c6ae04a02
commit b8c7df1ef9
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.Params.assets.favicon32x32 | default "favicon-32x32.png" | absURL }}">
<link rel="apple-touch-icon" href="{{ .Site.Params.assets.apple_touch_icon | default "apple-touch-icon.png" | absURL }}">
<link rel="mask-icon" href="{{ .Site.Params.assets.safari_pinned_tab | default "safari-pinned-tab.svg" | absURL }}">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<meta name="theme-color" content="{{ .Site.Params.assets.theme_color | default "#2e2e33" }}">
<meta name="msapplication-TileColor" content="{{ .Site.Params.assets.msapplication_TileColor | default "#2e2e33" }}">
{{- /* Generator */}}
{{ hugo.Generator }}