From 017543b2f818ce9cd7356480f3a06b0c3e6d8728 Mon Sep 17 00:00:00 2001 From: jinxiapu Date: Mon, 26 Mar 2018 22:55:23 +0800 Subject: [PATCH] Only load isso script and css on pages that support comments --- layouts/blog/single.html | 14 ++++++++++++++ layouts/partials/footer_scripts.html | 10 ---------- layouts/partials/head_includes.html | 8 -------- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 4e2505e..af7988f 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,5 +1,13 @@ {{ partial "header.html" . }} +{{ if .Site.Params.issoHost }} + +{{ end }} +
@@ -73,6 +81,12 @@
{{ if .Site.Params.issoHost }}
+ {{ end }}
diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html index 1605f8b..a7a71cd 100644 --- a/layouts/partials/footer_scripts.html +++ b/layouts/partials/footer_scripts.html @@ -20,16 +20,6 @@ {{ end }} - -{{ if .Site.Params.issoHost }} - -{{ end }} - {{ if .Site.Params.share }} {{ end }} diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index e219463..6b917b2 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -44,14 +44,6 @@ {{ end }} -{{ if .Site.Params.issoHost }} - -{{ end }} -