improve footer

This commit is contained in:
Vri 🌈 2023-01-06 21:23:45 +01:00
parent e32c729067
commit 3cf6018c1f
Signed by: vrifox
GPG key ID: D40098E5B60B2197
6 changed files with 56 additions and 10 deletions

View file

@ -1,10 +1,25 @@
footer {
background-color: var(--border);
color: var(--text-secondary);
grid-area: footer;
a { color: var(--text-secondary); }
margin: 1em auto;
text-align: center;
p{
margin: .25em;
span {
padding: 17.6px 30px;
margin-right: auto;
&:not(:last-child) {
&::after {
content: '·';
padding: .25em;
}
}
a {
color: var(--text-secondary);
text-decoration-color: transparent;
&:hover {
text-decoration: underline;
text-decoration-color: var(--text-secondary);
}
}
}
}
}

View file

@ -8,6 +8,8 @@ defaultContentLanguageInSubdir: true
params:
displayName: "Vri 🌈"
username: "@vrifox"
staticSiteGenerator: "Hugo"
staticSiteGeneratorLink: "https://gohugo.io/"
markup:
highlight:

View file

@ -19,7 +19,7 @@ main:
# name: "Empfehlungen"
# pageref: "/blogroll/"
# weight: 5
footer:
footer_source:
- identifier: "sourcecode"
name: "Quellcode"
url: "https://code.cozy.town/vri/website"

View file

@ -6,6 +6,18 @@ projects:
blog:
other: Blog
sourcecode:
other: "Quellcode"
# Footer
build:
other: "Build "
build-title-tag:
other: "Build von "
made-with:
other: "Erstellt mit "
# Shortcodes
verticalposts-more:
other: mehr

View file

@ -6,6 +6,18 @@ projects:
blog:
other: Blog
sourcecode:
other: "Sourcecode"
# Footer
build:
other: "Build "
build-title-tag:
other: "Build from "
made-with:
other: "Made with "
# Shortcodes
verticalposts-more:
other: more

View file

@ -1,7 +1,12 @@
<footer>
<p title="Build vom {{ .Date | time.Format "2. January 2006, um 15:04 Uhr MST" }}">Version: {{ .Date | time.Format "02.01.2006" }}</p>
{{- range .Site.Menus.footer }}
<a href="{{ .URL }}">{{ .Name }}</a>
<p>
<span title='{{ i18n "build-title-tag" }}{{ now | time.Format ":date_full" }}, {{ now | time.Format ":time_full" }}'>{{ i18n "build" }}{{ now | time.Format ":date_short" }}</span>
{{- range .Site.Menus.footer_source -}}
<span><a href="{{ .URL }}">{{ i18n .Identifier | default .Name }}</a></span>
{{- end }}
</p>
<p>
<span>{{ i18n "made-with" }}<a href='{{ .Site.Params.staticSiteGeneratorLink }}'>{{ .Site.Params.staticSiteGenerator }}</a></span>
</p>
</footer>