Parameterize browserconfig.xml, site.webmanifest
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
{{- $page := . -}}
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<TileColor>#0d6efd</TileColor>
|
||||
<TileColor>{{ $page.Param "paige.color" | default "#0d6efd" }}</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
@@ -1,3 +1,5 @@
|
||||
{{- $page := . -}}
|
||||
|
||||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
@@ -13,7 +15,7 @@
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#0d6efd",
|
||||
"background_color": "#0d6efd",
|
||||
"theme_color": "{{ $page.Param `paige.color` | default `#0d6efd` }}",
|
||||
"background_color": "{{ $page.Param `paige.color` | default `#0d6efd` }}",
|
||||
"display": "standalone"
|
||||
}
|
@@ -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") }}
|
||||
|
@@ -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">
|
||||
|
||||
|
Reference in New Issue
Block a user