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 { footer {
background-color: var(--border);
color: var(--text-secondary); color: var(--text-secondary);
grid-area: footer; grid-area: footer;
a { color: var(--text-secondary); } margin: 1em auto;
text-align: center;
p{
margin: .25em;
span { span {
padding: 17.6px 30px; &:not(:last-child) {
margin-right: auto; &::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: params:
displayName: "Vri 🌈" displayName: "Vri 🌈"
username: "@vrifox" username: "@vrifox"
staticSiteGenerator: "Hugo"
staticSiteGeneratorLink: "https://gohugo.io/"
markup: markup:
highlight: highlight:

View file

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

View file

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

View file

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

View file

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