From cb63eef254a6739cb341336e84918a1fb420e9a8 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sun, 10 May 2026 12:23:57 -0400 Subject: [PATCH 01/10] Convert theme into module --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..1008b40 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module hugo-bearcub + +go 1.26.2 From 763404516a5ef9dfa450ee16873ecdde442baf9e Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sun, 10 May 2026 12:59:09 -0400 Subject: [PATCH 02/10] Fix module name --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 1008b40..c8a1f9b 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module hugo-bearcub +module forge.alexselimov.com/aselimov/hugo-bearcub go 1.26.2 From e66b0692c27e31c85eef3757ae60d3dcf5d5a1ea Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 11 May 2026 22:54:34 -0400 Subject: [PATCH 03/10] 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 }} From d30f0884a19855956ce28a7c042685cae31182a4 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 11 May 2026 23:35:16 -0400 Subject: [PATCH 04/10] Style heatmap-caption color --- assets/herman.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/assets/herman.css b/assets/herman.css index e2dfc11..9bf7f0c 100644 --- a/assets/herman.css +++ b/assets/herman.css @@ -245,3 +245,13 @@ figcaption > p { text-align: center; font-style: italic; } + +#heatmap-caption { + color: #888; +} + +@media (prefers-color-scheme: light) { + #heatmap-caption { + color: #3d4449; + } +} From 2e21862b9aba96cc18bb0861b17b65671aee74fe Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Tue, 12 May 2026 09:21:55 -0400 Subject: [PATCH 05/10] Remove the file check so heatmap renders even if activity.json not present at build time --- layouts/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index cb73b38..8d7b9b0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,9 +16,7 @@

All posts →

Activity map

- {{ if fileExists "static/activity.json" }} - {{ partial "git-heatmap.html" . }} - {{ end }} + {{ partial "git-heatmap.html" . }} {{ end }} From e65b16a8dd39daae4b8568f74f3d83a12ce7d643 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Tue, 12 May 2026 09:36:18 -0400 Subject: [PATCH 06/10] Update modfiles --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 204ef05..a79c7df 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ 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 +require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553 // indirect diff --git a/go.sum b/go.sum index d212b84..382ca76 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +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= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553 h1:9XSeGiKCVd3kJ27hZMYOb8NwsMbr21IfirxXEAQ295E= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= From ae79f2ff159be876b734bbff29c42595a2270bce Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Wed, 13 May 2026 06:56:33 -0400 Subject: [PATCH 07/10] Update modfiles --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index a79c7df..a0ad6bd 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module forge.alexselimov.com/aselimov/hugo-bearcub go 1.26.2 -require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553 // indirect +require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f // indirect diff --git a/go.sum b/go.sum index 382ca76..c6fd1d4 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553 h1:9XSeGiKCVd3kJ27hZMYOb8NwsMbr21IfirxXEAQ295E= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f h1:b+OXlKA5AUCt2uSNr/NtQ7e5qN89nlYUoquE4wYy74Q= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= From 33a7006c5f99638a755788b7834087902372b62b Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Wed, 13 May 2026 07:21:59 -0400 Subject: [PATCH 08/10] Update modfiles --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index a0ad6bd..5959c02 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module forge.alexselimov.com/aselimov/hugo-bearcub go 1.26.2 -require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f // indirect +require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d // indirect diff --git a/go.sum b/go.sum index c6fd1d4..ffcbb82 100644 --- a/go.sum +++ b/go.sum @@ -2,3 +2,5 @@ forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-6 forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512033457-620121b50553/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f h1:b+OXlKA5AUCt2uSNr/NtQ7e5qN89nlYUoquE4wYy74Q= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d h1:k6zj4ZZWwgUY0pTXFQMMSDivNbF8x5C3YHheSm+lCh4= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= From 9c0ae949af83074351e5d57b02e1e1ccb90e6a10 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Wed, 13 May 2026 07:34:49 -0400 Subject: [PATCH 09/10] Update modfiles --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 5959c02..554120a 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module forge.alexselimov.com/aselimov/hugo-bearcub go 1.26.2 -require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d // indirect +require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513113347-46315d9a6267 // indirect diff --git a/go.sum b/go.sum index ffcbb82..9e83b4c 100644 --- a/go.sum +++ b/go.sum @@ -4,3 +4,5 @@ forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-5 forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513105512-53084c4e6f8f/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d h1:k6zj4ZZWwgUY0pTXFQMMSDivNbF8x5C3YHheSm+lCh4= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513113347-46315d9a6267 h1:Z+LYfP8DE7Rxr9su2QtcL4dSiK7e5gNvLVDCcae21Z4= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513113347-46315d9a6267/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= From 2c2a275a9564eef79f3b30dc3ffd49d72603e845 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Fri, 15 May 2026 20:00:52 -0400 Subject: [PATCH 10/10] Update modfiles --- .gitignore | 3 ++- go.mod | 2 +- go.sum | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6f93da2..b1705b4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .DS_Store resources/ todo.md -exampleSite/public/ \ No newline at end of file +exampleSite/public/ +.env diff --git a/go.mod b/go.mod index 554120a..9be2556 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module forge.alexselimov.com/aselimov/hugo-bearcub go 1.26.2 -require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513113347-46315d9a6267 // indirect +require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260516000031-0c7f7a685358 // indirect diff --git a/go.sum b/go.sum index 9e83b4c..65fa8bd 100644 --- a/go.sum +++ b/go.sum @@ -6,3 +6,9 @@ forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513112041-d9784bdbd43d/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513113347-46315d9a6267 h1:Z+LYfP8DE7Rxr9su2QtcL4dSiK7e5gNvLVDCcae21Z4= forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260513113347-46315d9a6267/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260515030001-e1941ac77d8c h1:Ke/wZuvIXQTQcHvk9P9jNo6hnRcD87dFtD9lJRo5b2Y= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260515030001-e1941ac77d8c/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260515030329-f5140502fd93 h1:2Hn3xkPm21DeGkj4hIJ0Zt2haqfSHdOu2B5peeETzyw= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260515030329-f5140502fd93/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260516000031-0c7f7a685358 h1:NovauVNIvi+6TW41HfUvSpYoOcwIJI9FdlY7f6Snfjc= +forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260516000031-0c7f7a685358/go.mod h1:YcxJyQNzPOmoJ/9LYHlPrZLVqMI25izS4j+lMqJgXH0=