From e66b0692c27e31c85eef3757ae60d3dcf5d5a1ea Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 11 May 2026 22:54:34 -0400 Subject: [PATCH] Add git-heatmap if activity.json present --- go.mod | 2 ++ go.sum | 2 ++ hugo.toml | 3 +++ layouts/index.html | 5 +++++ 4 files changed, 12 insertions(+) create mode 100644 go.sum create mode 100644 hugo.toml diff --git a/go.mod b/go.mod index c8a1f9b..204ef05 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module forge.alexselimov.com/aselimov/hugo-bearcub go 1.26.2 + +require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512025533-3c48c2bd2d53 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..d212b84 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512025533-3c48c2bd2d53 h1:19rdUTj2Bn/bbBfioKhQBV4fsTTMRBIUVvfH1332Ykk= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512025533-3c48c2bd2d53/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..96dc156 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,3 @@ +[module] +[[module.imports]] +path = 'forge.alexselimov.com/aselimov/hugo-unified-git-activity' diff --git a/layouts/index.html b/layouts/index.html index 833cae1..cb73b38 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -15,5 +15,10 @@

All posts →

+

Activity map

+ {{ if fileExists "static/activity.json" }} + {{ partial "git-heatmap.html" . }} + {{ end }} + {{ end }}