Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WingLim/hugo-tania.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsdita Prasetya <32544683+hellodit@users.noreply.github.com>2021-07-09 13:40:34 +0300
committerGitHub <noreply@github.com>2021-07-09 13:40:34 +0300
commitcb2fd0ca982ee2dccbded73bb36d6d869946c9a8 (patch)
tree746ba249dc5861a1f066f0c1111a4f0acf84795c
parent5618eca561d8d5a8230b50f7f90c41bc2453d76e (diff)
feat: add Google Analytics Internal template (#26)
* feat(meta-seo): add meta seo tags * Add example config * Add config variable to readme.md * change variable to Camel-Case * update example config * feat(favicon): add favicon * Add lazy load image * fix search style on dark mode * add img style to center * add ReadingTime * chore: update resources * Add example lazy load image post * chore: update resources * Add google_analytics to template Co-authored-by: WingLim <643089849@qq.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
-rw-r--r--layouts/partials/head/head.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index 7b1a172..68eca7e 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -6,6 +6,9 @@
<meta name="theme-color" content="dark">
<title>{{with.Title}}{{.}} | {{end}}{{.Site.Title}}</title>
+ {{ template "_internal/google_analytics.html" . }}
+ {{ template "_internal/google_analytics_async.html" . }}
+
<meta property="og:site_name" content="{{.Site.Params.siteName}}" />
<meta property="og:title" content="{{with.Title}}{{.}} | {{end}}{{.Site.Title}}"/>
<meta itemprop="name" content="{{with.Title}}{{.}} | {{end}}{{.Site.Title}}" />