Add tags for browserconfig.xml, favicon.ico if baseurl is not root

This commit is contained in:
Will Faught
2022-12-21 13:15:27 -08:00
parent b7f83c8986
commit 02acbebe91
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
<link href="{{ relLangURL `apple-touch-icon.png` }}" rel="apple-touch-icon" sizes="180x180">
<link href="{{ relLangURL `favicon-16x16.png` }}" rel="icon" sizes="16x16" type="image/png">
<link href="{{ relLangURL `favicon-32x32.png` }}" rel="icon" sizes="32x32" type="image/png">
{{ if ne (relLangURL "favicon.ico") "/favicon.ico" }}
<link href="{{ relLangURL `favicon.ico` }}" rel="shortcut icon">
{{ end }}
<link href="{{ relLangURL `favicon.png` }}" rel="icon" type="image/png">
<link href="{{ relLangURL `favicon.svg` }}" rel="icon" type="image/svg+xml">
<link color="{{ .Site.Params.paige.color | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">

View File

@@ -9,6 +9,9 @@
<meta content="{{ delimit (sort (union (union .Keywords .Params.tags) .Params.categories)) `, ` }}" name="keywords">
{{ end }}
<meta content="{{ .Site.Params.paige.color | default `#0d6efd` }}" name="msapplication-TileColor">
{{ if ne (relLangURL "browserconfig.xml") "/browserconfig.xml" }}
<meta content="{{ relLangURL `browserconfig.xml` }}" name="msapplication-config" >
{{ end }}
<meta content="{{ .Site.Params.paige.color | default `#0d6efd` }}" name="theme-color">
<meta content="width=device-width, initial-scale=1" name="viewport">
{{ template "_internal/opengraph.html" . }}