mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-22 05:58:33 +00:00
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" -}}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
|
{{- if and (.Site.Params.Manifest) ((.Site.GetPage "home").OutputFormats.Get "manifest") -}}
|
||||||
{{ if not .Site.IsServer }}{{ template "_internal/google_analytics_async.html" . }}{{ end }}
|
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
|
||||||
|
{{- end }}
|
||||||
|
{{- if not .Site.IsServer }}
|
||||||
|
{{ template "_internal/google_analytics_async.html" . }}
|
||||||
|
{{- end }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ partial "header" . }}
|
{{ partial "header" . }}
|
||||||
|
|
Loading…
Reference in a new issue