latest changes, wip?

This commit is contained in:
teldra 2022-06-16 01:21:24 +02:00
parent ddc4aa92e6
commit 95fb49c40f
3 changed files with 23 additions and 18 deletions

View File

@ -19,6 +19,11 @@ imprint = true
#do you want an media folder?
media = true
#do you want an misc folder?
misc = true
#do you want to show a link to the sourcecode?
sourcecode = true
# what is seen in the header?
mainMenu = ['about','news','events']

View File

@ -33,7 +33,3 @@
}
}
}
@-moz-document url-prefix("about:reader?") {
body { background: red; }
}

View File

@ -1,4 +1,4 @@
{{- if or (eq site.Params.archive true) (eq site.Params.newsletter true) (eq site.Params.links true) (eq site.Params.imprint true) }}
<div class="infobox a">
{{- if eq site.Params.archive true -}}
{{ $archive := "Archive" }}
@ -29,23 +29,27 @@
<a href="{{- "imprint" | absLangURL -}}">{{- $imprint | strings.FirstUpper -}}</a>
{{- end -}}
</div>
{{- end -}}
{{- if or (eq site.Params.rss true) (eq site.Params.misc true) (eq site.Params.sourcecode true) }}
<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
{{- if .Permalink -}}
</a>
{{- end -}}
{{- end -}}
{{ if eq site.Params.misc true }}<a href="{{- "misc" | absLangURL -}}">Misc</a>{{ end }}
{{ if eq site.Params.rss true }}
{{- if or (in .Site.Params.mainMenu .Section) -}}
{{- with .OutputFormats.Get "rss" -}}
{{- if .Permalink -}}
{{- printf `<a href="%s">` .Permalink | safeHTML -}}
{{- end -}}
RSS
{{- if .Permalink -}}
</a>
{{- end -}}
{{- end -}}
{{ end }}
{{ end }}
<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>
{{ if eq site.Params.sourcecode true }}<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>{{ end }}
</div>
{{ end }}
{{- if eq site.Params.contact true }}
<div class="infobox c">