From e2d3390c44ffb750acd222e28baabd6c5ee63236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Moreno=20Pe=C3=B1a?= Date: Sat, 2 Nov 2024 22:53:28 +0100 Subject: [PATCH] Adds support for Vercel page insights (#75) --- exampleSite/hugo.toml | 3 +++ layouts/partials/base-foot.html | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 431a736..d164bbb 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -72,6 +72,9 @@ theme = "adritian-free-hugo-theme" homepageExperienceCount = 6 + # controls vercel page insights - disabled by default + vercelPageInsights = false + [params.google_analytics] code = "UA-XXXXX-Y" enabled = false diff --git a/layouts/partials/base-foot.html b/layouts/partials/base-foot.html index a6749f4..8ee4483 100644 --- a/layouts/partials/base-foot.html +++ b/layouts/partials/base-foot.html @@ -15,4 +15,12 @@ + +{{ $vercelPageInsights := .Site.Params.vercelPageInsights }} +{{ if $vercelPageInsights }} + + +{{ end }}