From 280ec376f46a3e16e57cc7b4372b3c3d58ec1843 Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 24 Aug 2019 20:25:05 +0800 Subject: [PATCH] fix: fix seo bug --- layouts/partials/head.html | 1 + layouts/partials/scripts.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8feff4d..35a652e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,5 +1,6 @@ + {{ with .Site.Params.google_verification -}} {{ end -}} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 45a7887..34e2025 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -161,4 +161,6 @@ {{ $res := resources.Get "/js/blog.js" | resources.Minify }} -{{ template "_internal/google_analytics_async.html" . }} \ No newline at end of file +{{ if not .Site.IsServer }} + {{ template "_internal/google_analytics_async.html" . }} +{{ end }} \ No newline at end of file