From 7956e1299a3bbb5dc523f1af9ee570b68bd1bb72 Mon Sep 17 00:00:00 2001 From: kouloumos Date: Thu, 9 Nov 2023 15:13:33 +0200 Subject: [PATCH] add umami --- .github/workflows/gh-pages.yml | 3 +++ themes/ace-documentation/layouts/index.html | 6 ++++++ themes/ace-documentation/layouts/partials/head.html | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b426f47e55..3810fcfd78 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -22,6 +22,9 @@ jobs: - name: Build run: hugo --minify + env: + HUGO_UMAMI_SOURCE: ${{ secrets.HUGO_UMAMI_SOURCE }} + HUGO_UMAMI_WEBSITE_ID: "${{ secrets.HUGO_UMAMI_WEBSITE_ID }}" - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/themes/ace-documentation/layouts/index.html b/themes/ace-documentation/layouts/index.html index 50715eb083..e2dfcb4af9 100644 --- a/themes/ace-documentation/layouts/index.html +++ b/themes/ace-documentation/layouts/index.html @@ -33,4 +33,10 @@

{{ i18n "section4_title" }} +
+ Visitor counts publicly available via + + umami + +
{{ end }} diff --git a/themes/ace-documentation/layouts/partials/head.html b/themes/ace-documentation/layouts/partials/head.html index 352d519f6e..9ccfed1204 100644 --- a/themes/ace-documentation/layouts/partials/head.html +++ b/themes/ace-documentation/layouts/partials/head.html @@ -23,6 +23,9 @@ {{ if eq hugo.Environment "production" }} {{- partial "twitter_cards.html" . -}} + {{- $umami := getenv "HUGO_UMAMI_SOURCE" -}} + {{- $umamiID := getenv "HUGO_UMAMI_WEBSITE_ID" -}} + {{ end }}