Add git-heatmap if activity.json present

This commit is contained in:
Alex Selimov 2026-05-11 22:54:34 -04:00
parent 763404516a
commit e66b0692c2
4 changed files with 12 additions and 0 deletions

2
go.mod
View file

@ -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

2
go.sum Normal file
View file

@ -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=

3
hugo.toml Normal file
View file

@ -0,0 +1,3 @@
[module]
[[module.imports]]
path = 'forge.alexselimov.com/aselimov/hugo-unified-git-activity'

View file

@ -15,5 +15,10 @@
<p><a href="/posts/">All posts →</a></p>
<h2> Activity map</h2>
{{ if fileExists "static/activity.json" }}
{{ partial "git-heatmap.html" . }}
{{ end }}
</content>
{{ end }}