Compare commits
2 commits
3ec0c545cd
...
159662def6
Author | SHA1 | Date | |
---|---|---|---|
Marko Korhonen | 159662def6 | ||
Marko Korhonen | a3d507d98b |
|
@ -3,7 +3,7 @@
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"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
2
go.mod
|
@ -2,4 +2,4 @@ module git.korhonen.cc/FunctionalHacker/korhonen.cc
|
||||||
|
|
||||||
go 1.21.6
|
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
2
go.sum
|
@ -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 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.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=
|
||||||
|
|
|
@ -6,6 +6,17 @@
|
||||||
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
|
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
|
||||||
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
|
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
|
||||||
{{ $disclaimerEnabled := site.Params.footer.disclaimer.enable | default false }}
|
{{ $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 */}}
|
{{/* Keep backward compatibility for the newsletter function */}}
|
||||||
{{ if site.Params.newsletter }}
|
{{ if site.Params.newsletter }}
|
||||||
|
@ -197,7 +208,7 @@
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<a id="theme" href="https://github.com/hugo-toha/toha" target="_blank" rel="noopener">
|
<a id="theme" href="https://github.com/hugo-toha/toha" target="_blank" rel="noopener">
|
||||||
<img src="{{ $themeLogo }}" alt="Toha Theme Logo">
|
<img src="{{ $themeLogo }}" alt="Toha Theme Logo">
|
||||||
Toha
|
Toha theme {{ $tohaVersion }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 text-center">{{ replace $copyrightNotice "{year}" now.Year | markdownify }}</div>
|
<div class="col-md-4 text-center">{{ replace $copyrightNotice "{year}" now.Year | markdownify }}</div>
|
||||||
|
|
Loading…
Reference in a new issue