From 1665f619df781375bb5505fc16878a2afd918136 Mon Sep 17 00:00:00 2001 From: vimux Date: Wed, 14 Nov 2018 10:03:23 -0500 Subject: [PATCH] Better handling Web Manifest include --- layouts/_default/baseof.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b6b150f..0208370 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,8 +17,12 @@ {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{ end -}} - - {{ if not .Site.IsServer }}{{ template "_internal/google_analytics_async.html" . }}{{ end }} + {{- if and (.Site.Params.Manifest) ((.Site.GetPage "home").OutputFormats.Get "manifest") -}} + + {{- end }} + {{- if not .Site.IsServer }} + {{ template "_internal/google_analytics_async.html" . }} + {{- end }} {{ partial "header" . }}