Compare commits

...

2 commits

Author SHA1 Message Date
Marko Korhonen 159662def6
Update theme
All checks were successful
Build and deploy site / Build and deploy site (push) Successful in 21s
2024-04-04 19:16:40 +03:00
Marko Korhonen a3d507d98b
Display toha theme version in footer 2024-04-04 19:14:31 +03:00
4 changed files with 16 additions and 3 deletions

View file

@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.1.1/assets/*"
"../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.4.0/assets/*"
]
}
}

2
go.mod
View file

@ -2,4 +2,4 @@ module git.korhonen.cc/FunctionalHacker/korhonen.cc
go 1.21.6
require github.com/hugo-toha/toha/v4 v4.1.1 // indirect
require github.com/hugo-toha/toha/v4 v4.4.0 // indirect

2
go.sum
View file

@ -1,2 +1,4 @@
github.com/hugo-toha/toha/v4 v4.1.1 h1:KbCWZRkHewaO6hsKxnlkyO9RjmBwIUbVh7KY+VfiNaU=
github.com/hugo-toha/toha/v4 v4.1.1/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
github.com/hugo-toha/toha/v4 v4.4.0 h1:RdRpjfsPgE+VXb/m3Rl+1n86pVZTrplsDvtXYK3wNh0=
github.com/hugo-toha/toha/v4 v4.4.0/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=

View file

@ -6,6 +6,17 @@
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
{{ $disclaimerEnabled := site.Params.footer.disclaimer.enable | default false }}
{{ $tohaVersion := "v4" }}
{{- $goModContent := readFile "go.mod" -}}
{{- $lines := split $goModContent "\n" -}}
{{- range $lines -}}
{{- $line := trim . " " -}}
{{- if hasPrefix $line "require github.com/hugo-toha/toha/v4" -}}
{{- $parts := split $line " " -}}
{{- $tohaVersion = index $parts 2 -}}
{{- end -}}
{{- end -}}
{{/* Keep backward compatibility for the newsletter function */}}
{{ if site.Params.newsletter }}
@ -197,7 +208,7 @@
<div class="col-md-4">
<a id="theme" href="https://github.com/hugo-toha/toha" target="_blank" rel="noopener">
<img src="{{ $themeLogo }}" alt="Toha Theme Logo">
Toha
Toha theme {{ $tohaVersion }}
</a>
</div>
<div class="col-md-4 text-center">{{ replace $copyrightNotice "{year}" now.Year | markdownify }}</div>