From bd7e3f20a49797e510af178d567c9ccd78151ae9 Mon Sep 17 00:00:00 2001 From: Mats Brorsson Date: Thu, 10 Dec 2020 10:06:19 +0100 Subject: added support for MS clarity --- exampleSite/config/_default/params.toml | 3 +++ layouts/partials/site_head.html | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 9c7a0e9..57cec4a 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1,6 +1,9 @@ # SITE SETUP # Documentation: https://sourcethemes.com/academic/ +# marketing +microsoft_clarity = "" + # Color theme. # Choose from `default`, `ocean`, `forest`, `dark`, `apogee`, `1950s`, `coffee`, `cupcake`, `strawberry`. color_theme = "default" diff --git a/layouts/partials/site_head.html b/layouts/partials/site_head.html index dd8b409..e3d0ea2 100644 --- a/layouts/partials/site_head.html +++ b/layouts/partials/site_head.html @@ -118,6 +118,15 @@ {{ end }} {{ if not site.IsServer }} + {{ if site.Params.microsoft_clarity }} + + {{ end }} {{ if site.GoogleAnalytics }}