Add git-heatmap if activity.json present
This commit is contained in:
parent
763404516a
commit
e66b0692c2
4 changed files with 12 additions and 0 deletions
2
go.mod
2
go.mod
|
|
@ -1,3 +1,5 @@
|
||||||
module forge.alexselimov.com/aselimov/hugo-bearcub
|
module forge.alexselimov.com/aselimov/hugo-bearcub
|
||||||
|
|
||||||
go 1.26.2
|
go 1.26.2
|
||||||
|
|
||||||
|
require forge.alexselimov.com/aselimov/hugo-unified-git-activity v0.0.0-20260512025533-3c48c2bd2d53 // indirect
|
||||||
|
|
|
||||||
2
go.sum
Normal file
2
go.sum
Normal 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
3
hugo.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[module]
|
||||||
|
[[module.imports]]
|
||||||
|
path = 'forge.alexselimov.com/aselimov/hugo-unified-git-activity'
|
||||||
|
|
@ -15,5 +15,10 @@
|
||||||
|
|
||||||
<p><a href="/posts/">All posts →</a></p>
|
<p><a href="/posts/">All posts →</a></p>
|
||||||
|
|
||||||
|
<h2> Activity map</h2>
|
||||||
|
{{ if fileExists "static/activity.json" }}
|
||||||
|
{{ partial "git-heatmap.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</content>
|
</content>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue