Parameterize browserconfig.xml, site.webmanifest

This commit is contained in:
Will Faught
2023-03-16 18:09:30 -07:00
parent bde97e4482
commit e437482028
4 changed files with 9 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
<link href="{{ relLangURL `favicon.png` | safeURL }}" rel="icon" type="image/png">
<link href="{{ relLangURL `favicon.svg` | safeURL }}" rel="icon" type="image/svg+xml">
<link color="{{ $page.Param `paige.color` | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` | safeURL }}" rel="mask-icon">
<link href="{{ relLangURL `site.webmanifest` | safeURL }}" rel="manifest">
<link href="{{ (resources.Get `site.webmanifest` | resources.ExecuteAsTemplate `site.webmanifest` .).RelPermalink | safeURL }}" rel="manifest">
{{ partial "paige/link.html" (dict "href" "_paige/bootstrap/paige.scss" "page" $page "sass" true) }}
{{ partial "paige/link.html" (dict "href" "_paige/bootstrap-icons/bootstrap-icons.css") }}

View File

@@ -15,7 +15,7 @@
{{ end }}
<meta content="{{ $page.Param `paige.color` | default `#0d6efd` }}" name="msapplication-TileColor">
<meta content="{{ relLangURL `browserconfig.xml` }}" name="msapplication-config">
<meta content="{{ (resources.Get `browserconfig.xml` | resources.ExecuteAsTemplate `browserconfig.xml` .).RelPermalink }}" name="msapplication-config">
<meta content="{{ $page.Param `paige.color` | default `#0d6efd` }}" name="theme-color">
<meta content="width=device-width, initial-scale=1" name="viewport">