Better handling Web Manifest include

This commit is contained in:
vimux 2018-11-14 10:03:23 -05:00
parent 4371d429ce
commit 1665f619df
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -17,8 +17,12 @@
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
{{- if and (.Site.Params.Manifest) ((.Site.GetPage "home").OutputFormats.Get "manifest") -}}
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
{{ if not .Site.IsServer }}{{ template "_internal/google_analytics_async.html" . }}{{ end }}
{{- end }}
{{- if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{- end }}
</head>
<body>
{{ partial "header" . }}