small fixes

This commit is contained in:
teldra 2022-06-16 01:00:58 +02:00
parent 1cfa4529e3
commit ddc4aa92e6
2 changed files with 30 additions and 22 deletions

View File

@ -1,32 +1,34 @@
.footer {
flex-grow: 0;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 1rem;
flex-direction: column;
width: 98vw;
margin-left: auto;
margin-right: auto;
flex-direction: column-reverse;
.infobox {
display: flex;
flex-direction: column;
text-align: center;
a {
margin-top: 1em;
}
}
a {
margin-top: .8em;
}
}
@media (min-width: 640px) {
.footer {
max-width: 89%;
margin-left: auto;
margin-right: auto;
flex-direction: row;
justify-content: space-between;
.infobox {
text-align: left;
flex-direction: column;
}
.a { order: 2;}
.b { order: 3;}
.c { order: 1;}
}
}

View File

@ -1,15 +1,5 @@
{{- if eq site.Params.contact true }}
<div class="infobox">
{{ $contact := "Contact" }}
{{ if i18n "contact" }}
{{ $contact = i18n "contact" }}
{{ end }}
<a href="{{- "contact" | absLangURL -}}">{{- $contact | strings.FirstUpper -}}:</a>
{{- partial "snippets/contact" -}}
</div>
{{- end -}}
<div class="infobox">
<div class="infobox a">
{{- if eq site.Params.archive true -}}
{{ $archive := "Archive" }}
{{ if i18n "archive" }}
@ -40,16 +30,32 @@
{{- end -}}
</div>
<div class="infobox">
<div class="infobox b">
<a href="{{- "misc" | absLangURL -}}">Misc</a>
{{- if or (in .Site.Params.mainMenu .Section) -}}
{{- with .OutputFormats.Get "rss" -}}
{{- if .Permalink -}}
{{- printf `<a href="%s">` .Permalink | safeHTML -}}
{{- end -}}
RSS</a>
{{- end -}}
RSS
{{- if .Permalink -}}
</a>
{{- end -}}
{{- end -}}
{{ end }}
<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>
</div>
{{- if eq site.Params.contact true }}
<div class="infobox c">
{{ $contact := "Contact" }}
{{ if i18n "contact" }}
{{ $contact = i18n "contact" }}
{{ end }}
<a href="{{- "contact" | absLangURL -}}">{{- $contact | strings.FirstUpper -}}:</a>
<div>
{{- partial "snippets/contact" -}}
</div>
</div>
{{- end -}}