From 32e94844012b8b6714cc32058340ae92d85adbcd Mon Sep 17 00:00:00 2001 From: David Heinzer Date: Mon, 15 Jan 2024 16:07:21 +0100 Subject: [PATCH] Add support of app insights for more details analytics --- hugo.toml | 1 + themes/ananke/layouts/_default/baseof.html | 1 + themes/ananke/layouts/partials/appinsights.html | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 themes/ananke/layouts/partials/appinsights.html diff --git a/hugo.toml b/hugo.toml index 559fa59..fe676af 100644 --- a/hugo.toml +++ b/hugo.toml @@ -7,3 +7,4 @@ sectionPagesMenu = 'main' [params] custom_css = ["css/main.css"] + azureAppInsightsKey = "0e4b7750-fc3a-4d6e-bb49-c832358ea13d" diff --git a/themes/ananke/layouts/_default/baseof.html b/themes/ananke/layouts/_default/baseof.html index 52e7e67..e61f78a 100644 --- a/themes/ananke/layouts/_default/baseof.html +++ b/themes/ananke/layouts/_default/baseof.html @@ -1,5 +1,6 @@ + {{ partial "appinsights.html" . }} diff --git a/themes/ananke/layouts/partials/appinsights.html b/themes/ananke/layouts/partials/appinsights.html new file mode 100644 index 0000000..071a66f --- /dev/null +++ b/themes/ananke/layouts/partials/appinsights.html @@ -0,0 +1,14 @@ +{{ if .Site.Params.azureAppInsightsKey }} + + {{ end }}