Add page title to window title, last modification time (according to Git) to footer
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2020-11-24 21:50:02 +01:00
parent 5cdd38fcaf
commit dbf189fa02
5 changed files with 29 additions and 9 deletions

View File

@ -32,8 +32,22 @@ main {
} }
footer { footer {
text-align: center; width: 100%;
max-width: $large;
margin: 0 auto;
padding: 0.5em; 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 { h1, h2, h3, h4, h5, h6, p {

View File

@ -1,5 +1,6 @@
baseURL = "https://www.franconian.net/" baseURL = "https://www.franconian.net/"
title = "franconian.net" title = "franconian.net"
enableGitInfo = true
[languages] [languages]
[languages.en] [languages.en]

View File

@ -1,2 +1,2 @@
[imprint] [last_change]
other = "Impressum" other = "Zuletzt geändert"

View File

@ -1,2 +1,2 @@
[imprint] [last_change]
other = "Imprint" other = "Last update"

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>{{ block "title" . }} <title>{{ block "title" . }}
{{ .Site.Title }} {{ .Title }} | {{ .Site.Title }}
{{ end }}</title> {{ end }}</title>
<link rel="icon" href="data:;base64,iVBORw0KGgo="> <link rel="icon" href="data:;base64,iVBORw0KGgo=">
{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }} {{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
@ -12,8 +12,8 @@
</head> </head>
<body> <body>
<header> <header>
<nav class="nav"> <nav class="nav nav-main">
<a class="nav-logo" href="{{ .Site.LanguagePrefix }}/"><img src="https://styleguide.rc3.world/Logo/Logo%20Set%203/SVG/Logo%20SD%20blue.svg" alt="Blue version of the rC3 logo">franconian.net</a> <a class="nav-logo" href="{{ .Site.LanguagePrefix }}/"><img src="https://styleguide.rc3.world/Logo/Logo%20Set%203/SVG/Logo%20SD%20blue.svg" alt="Blue version of the rC3 logo">{{ .Site.Title }}</a>
{{ if .IsTranslated }} {{ if .IsTranslated }}
{{ range .Translations }} {{ range .Translations }}
<a class="nav-link" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> <a class="nav-link" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
@ -29,7 +29,12 @@
{{ block "main" . }} {{ block "main" . }}
{{ end }} {{ end }}
<footer> <footer>
<a href="/imprint">{{ i18n "imprint" }}</a> {{ i18n "last_change" . }}: {{ .Lastmod }}
<nav class="nav">
{{ range .Site.Menus.footer }}
<a class="nav-link" href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
</footer> </footer>
</body> </body>
</html> </html>