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

10
assets/browserconfig.xml Normal file
View 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
View 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"
}