1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:55:30 -04:00

fix /site.webmanifest

This commit is contained in:
2020-04-25 21:44:17 -04:00
parent adfa73b5fc
commit b8166296ef
7 changed files with 16 additions and 15 deletions

View File

@@ -225,7 +225,6 @@
{{ partialCached "head/favicons" (dict "pngSizes" "192 48 32 16" "icoSizes" "16 32 48") }}
{{ partialCached "head/feeds" . }}
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
{{ partial "head/schema" . }}
</head>
<body>

View File

@@ -12,3 +12,8 @@
Cache-Control: public, max-age=604800, immutable
/vendor/*
Cache-Control: public, max-age=604800, immutable
# Recommended MIME type for PWA manifests:
# https://github.com/w3c/manifest/issues/689
/site.webmanifest
Content-Type: application/manifest+json

View File

@@ -6,7 +6,3 @@
{{- . | printf "%-35s" }} {{ $p.RelPermalink }} 301
{{ end -}}
{{- end }}
# Rewrite generated manifest.json to site.webmanifest
# https://github.com/w3c/manifest/issues/689
/site.webmanifest /manifest.json 200!

View File

@@ -5,17 +5,17 @@
"short_name": "{{ .Site.Params.domain }}",
"icons": [
{
"src": "{{ $android512.Permalink }}",
"src": "{{ $android512.Permalink | safeJS }}",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "{{ $android192.Permalink }}",
"src": "{{ $android192.Permalink | safeJS }}",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "{{ .Site.BaseURL }}",
"start_url": "{{ .Site.BaseURL | safeJS }}",
"display": "browser",
"background_color": "#ffffff",
"theme_color": "#0e6dc2"

View File

@@ -13,3 +13,5 @@
{{- range (split .icoSizes " ") }}{{ $s = $s | append (printf "%vx%v" . .) }}{{ end }}
{{- $faviconIco := resources.Get "img/favicon.ico" }}
<link rel="shortcut icon" href="{{ $faviconIco.Permalink }}" sizes="{{ delimit $s " " }}">
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">

View File

@@ -2,4 +2,3 @@
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}">
<meta name="theme-color" content="#0e6dc2">
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">