Better handling Web Manifest include
This commit is contained in:
parent
4371d429ce
commit
1665f619df
1 changed files with 6 additions and 2 deletions
|
@ -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" . }}
|
||||
|
|
Loading…
Reference in a new issue