Parameterize browserconfig.xml, site.webmanifest
This commit is contained in:
10
assets/browserconfig.xml
Normal file
10
assets/browserconfig.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
{{- $page := . -}}
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<TileColor>{{ $page.Param "paige.color" | default "#0d6efd" }}</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
21
assets/site.webmanifest
Normal file
21
assets/site.webmanifest
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- $page := . -}}
|
||||
|
||||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "{{ $page.Param `paige.color` | default `#0d6efd` }}",
|
||||
"background_color": "{{ $page.Param `paige.color` | default `#0d6efd` }}",
|
||||
"display": "standalone"
|
||||
}
|
Reference in New Issue
Block a user