From 3cf6018c1fc5db9b5b472fadd0ab87975b89b57a Mon Sep 17 00:00:00 2001 From: Vri Date: Fri, 6 Jan 2023 21:23:45 +0100 Subject: [PATCH] improve footer --- assets/footer.scss | 25 ++++++++++++++++++++----- config/_default/config.yaml | 2 ++ config/_default/menu.yaml | 2 +- i18n/de.yaml | 12 ++++++++++++ i18n/en.yaml | 12 ++++++++++++ layouts/partials/footer.html | 13 +++++++++---- 6 files changed, 56 insertions(+), 10 deletions(-) diff --git a/assets/footer.scss b/assets/footer.scss index d54c237..a82421a 100644 --- a/assets/footer.scss +++ b/assets/footer.scss @@ -1,10 +1,25 @@ footer { - background-color: var(--border); color: var(--text-secondary); grid-area: footer; - a { color: var(--text-secondary); } - span { - padding: 17.6px 30px; - margin-right: auto; + margin: 1em auto; + text-align: center; + p{ + margin: .25em; + span { + &: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); + } + } + } } } \ No newline at end of file diff --git a/config/_default/config.yaml b/config/_default/config.yaml index e1e9d55..0b57952 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -8,6 +8,8 @@ defaultContentLanguageInSubdir: true params: displayName: "Vri ๐ŸŒˆ" username: "@vrifox" + staticSiteGenerator: "Hugo" + staticSiteGeneratorLink: "https://gohugo.io/" markup: highlight: diff --git a/config/_default/menu.yaml b/config/_default/menu.yaml index 54571d9..51af38d 100644 --- a/config/_default/menu.yaml +++ b/config/_default/menu.yaml @@ -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" diff --git a/i18n/de.yaml b/i18n/de.yaml index 3b1c1bd..15f11c6 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -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 diff --git a/i18n/en.yaml b/i18n/en.yaml index 5ca3242..e11be0f 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -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 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1e6eef6..61d56e0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,12 @@