mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-10 15:53:03 +03:00
feat(index): 2023 & footer links
This commit is contained in:
parent
5f0178d5ff
commit
e1782cd204
2 changed files with 18 additions and 6 deletions
11
config.toml
11
config.toml
|
|
@ -9,9 +9,16 @@ staticDir = ["static"]
|
||||||
favicon = "favicon.ico" # path to a .ico to use as favicon
|
favicon = "favicon.ico" # path to a .ico to use as favicon
|
||||||
# logo = "logo.svg"
|
# logo = "logo.svg"
|
||||||
[params.footer]
|
[params.footer]
|
||||||
text = "Pavel Korytov, 2022"
|
text = "Pavel Korytov, 2023"
|
||||||
license = "Licensed under CC-BY 4.0"
|
license = ""
|
||||||
licenseURL = "https://creativecommons.org/licenses/by/4.0/legalcode"
|
licenseURL = "https://creativecommons.org/licenses/by/4.0/legalcode"
|
||||||
|
[[params.footer.links]]
|
||||||
|
text = "Licensed under CC-BY 4.0"
|
||||||
|
url = "https://creativecommons.org/licenses/by/4.0/legalcode"
|
||||||
|
[[params.footer.links]]
|
||||||
|
text = "Uses Plausible Analytics"
|
||||||
|
url = "https://plausible.io/"
|
||||||
|
|
||||||
mainSections = ['posts']
|
mainSections = ['posts']
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,16 @@
|
||||||
</div>
|
</div>
|
||||||
{{ with .Site.Params.footer }}
|
{{ with .Site.Params.footer }}
|
||||||
<div class="container text-center">
|
<div class="container text-center">
|
||||||
<a href="{{ .url | absURL }}" title="{{ .text }}"><small>{{ .text | safeHTML }}</small></a>
|
{{ if .links }}
|
||||||
{{ if .license }}
|
{{ range $i, $item := .links }}
|
||||||
<br>
|
<a href="{{ $item.url }}" title="{{ $item.text }}"><small>{{ $item.text }}</small></a>
|
||||||
<a href="{{ .licenseURL }}" title="{{ .license }}"><small>{{ .license }}</small></a>
|
{{ if not (eq $i (sub (len $.Site.Params.footer.links) 1)) }}
|
||||||
|
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
<br>
|
||||||
|
{{ end }}
|
||||||
|
<a href="{{ .url | absURL }}" title="{{ .text }}"><small>{{ .text | safeHTML }}</small></a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue