From dbf189fa0251c5cad834e72f265748dc7cd5050c Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 24 Nov 2020 21:50:02 +0100 Subject: [PATCH] Add page title to window title, last modification time (according to Git) to footer --- assets/style.scss | 16 +++++++++++++++- config.toml | 1 + i18n/de.toml | 4 ++-- i18n/en.toml | 4 ++-- layouts/_default/baseof.html | 13 +++++++++---- 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/assets/style.scss b/assets/style.scss index 6636ff2..6a7a478 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -32,8 +32,22 @@ main { } footer { - text-align: center; + width: 100%; + max-width: $large; + margin: 0 auto; padding: 0.5em; + + display: flex; + align-items: center; + flex-direction: column; + + @media screen and (min-width: $small) { + flex-direction: row; + + & :first-child { + margin-left: auto; + } + } } h1, h2, h3, h4, h5, h6, p { diff --git a/config.toml b/config.toml index 6fe15ae..c0f08a5 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,6 @@ baseURL = "https://www.franconian.net/" title = "franconian.net" +enableGitInfo = true [languages] [languages.en] diff --git a/i18n/de.toml b/i18n/de.toml index 64a1d7f..2fd661c 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -1,2 +1,2 @@ -[imprint] -other = "Impressum" +[last_change] +other = "Zuletzt geƤndert" diff --git a/i18n/en.toml b/i18n/en.toml index 94348fa..e62930e 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,2 +1,2 @@ -[imprint] -other = "Imprint" +[last_change] +other = "Last update" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 46e69c7..1f00b02 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ {{ block "title" . }} - {{ .Site.Title }} + {{ .Title }} | {{ .Site.Title }} {{ end }} {{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }} @@ -12,8 +12,8 @@
-