Skip to content

Commit

Permalink
add umami
Browse files Browse the repository at this point in the history
  • Loading branch information
kouloumos committed Nov 15, 2023
1 parent f6bb0d4 commit 7956e12
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions themes/ace-documentation/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ <h2 class="h4">{{ i18n "section4_title" }} <span class="fas fa-microphone"></spa
</div>
</div>
</section>
<div class="px-3 py-2 fixed-bottom text-right ">
Visitor counts publicly available via
<a href="https://visits.bitcoindevs.xyz/share/7hL0ysupLrZQsKRw/btc-transcripts" target="_blank">
umami
</a>
</div>
{{ end }}
3 changes: 3 additions & 0 deletions themes/ace-documentation/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<!-- Only include the tracking when using `hugo` or adding `--environment production` -->
{{ if eq hugo.Environment "production" }}
{{- partial "twitter_cards.html" . -}}
{{- $umami := getenv "HUGO_UMAMI_SOURCE" -}}
{{- $umamiID := getenv "HUGO_UMAMI_WEBSITE_ID" -}}
<script async src="{{ $umami }}" data-website-id="{{ $umamiID }}"></script>
{{ end }}

</head>

0 comments on commit 7956e12

Please sign in to comment.