From 22ff783d866c07d9d5317427fb71d7a528f208c7 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 3 Oct 2019 14:10:03 +0200 Subject: #86, Add google analytics to readme, move GA and enable Open Graph in head --- layouts/docs/baseof.html | 1 - layouts/home.html | 1 - layouts/partials/docs/html-head.html | 4 ++++ layouts/posts/baseof.html | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'layouts') diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index eac72f1..6ee6e40 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -25,7 +25,6 @@ {{ partial "docs/inject/body" . }} - {{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/home.html b/layouts/home.html index 37f9eeb..06ae844 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -22,7 +22,6 @@ You can override this page in: {{ partial "docs/inject/body" . }} - {{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 3cf5054..599695b 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -1,5 +1,7 @@ +{{- template "_internal/opengraph.html" . -}} + {{ partial "docs/title" . }} | {{ .Site.Title -}} @@ -23,3 +25,5 @@ Made with Book Theme https://github.com/alex-shpak/hugo-book {{ "-->" | safeHTML }} + +{{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index ee20522..c58d552 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -25,7 +25,6 @@ {{ partial "docs/inject/body" . }} - {{ template "_internal/google_analytics_async.html" . }} -- cgit v1.2.3