Skip to content

Commit

Permalink
feat: rename umami to umami-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Oct 13, 2024
1 parent d281535 commit d16d5ea
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hugo Umami Module

[![Used By](https://flat.badgen.net/github/dependents-repo/hugomods/umami?icon=github&label=used+by&color=green)](https://github.com/hugomods/umami/network/dependents)
![Hugo Requirements](https://img.shields.io/badge/dynamic/json?color=important&label=requirements&query=requirements&logo=hugo&style=flat-square&url=https://api.razonyang.com/v1/hugo/modules/github.com/hugomods/umami)
[![License](https://flat.badgen.net/github/license/hugomods/umami)](https://github.com/hugomods/umami/blob/main/LICENSE)
[![Version](https://flat.badgen.net/github/tag/hugomods/umami)](https://github.com/hugomods/umami/tags)
[![Used By](https://flat.badgen.net/github/dependents-repo/hugomods/umami-analytics?icon=github&label=used+by&color=green)](https://github.com/hugomods/umami-analytics/network/dependents)
![Hugo Requirements](https://img.shields.io/badge/dynamic/json?color=important&label=requirements&query=requirements&logo=hugo&style=flat-square&url=https://api.razonyang.com/v1/hugo/modules/github.com/hugomods/umami-analytics)
[![License](https://flat.badgen.net/github/license/hugomods/umami-analytics)](https://github.com/hugomods/umami-analytics/blob/main/LICENSE)
[![Version](https://flat.badgen.net/github/tag/hugomods/umami-analytics)](https://github.com/hugomods/umami-analytics/tags)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/hugomods/umami
module github.com/hugomods/umami-analytics

go 1.18
4 changes: 2 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[params.hugopress.modules.umami.hooks.head-end]
[params.hugopress.modules.umami-analytics.hooks.head-end]
cacheable = true
cache_param_key = "analyze"

[params.services.umami]
[params.services.umami_analytics]
script_url = "https://cloud.umami.is/script.js"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- with site.Params.services.umami.id }}
<script
defer
src="{{ site.Params.services.umami.script_url }}"
src="{{ site.Params.services.umami_analytics.script_url }}"
data-website-id="{{ . }}">
</script>
{{- end }}
3 changes: 3 additions & 0 deletions layouts/partials/hugomods/umami-analytics/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- if default true .Params.analyze }}
{{ partialCached "hugomods/umami-analytics/assets/js" . }}
{{- end }}
3 changes: 0 additions & 3 deletions layouts/partials/hugomods/umami/index.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ partialCached "hugomods/umami-analytics/index" .Page .Page.Params.analyze }}

This file was deleted.

0 comments on commit d16d5ea

Please sign in to comment.