From 95fb49c40fb39a825effadc6a14bd0c5a6616018 Mon Sep 17 00:00:00 2001 From: teldra Date: Thu, 16 Jun 2022 01:21:24 +0200 Subject: [PATCH] latest changes, wip? --- config/_default/params.toml | 5 +++ themes/buha/assets/scss/container.scss | 4 --- .../layouts/partials/snippets/footer.html | 32 +++++++++++-------- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 4ec9ba8..16f53bb 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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'] diff --git a/themes/buha/assets/scss/container.scss b/themes/buha/assets/scss/container.scss index d8db3e0..269ac4d 100644 --- a/themes/buha/assets/scss/container.scss +++ b/themes/buha/assets/scss/container.scss @@ -33,7 +33,3 @@ } } } - -@-moz-document url-prefix("about:reader?") { - body { background: red; } -} diff --git a/themes/buha/layouts/partials/snippets/footer.html b/themes/buha/layouts/partials/snippets/footer.html index 69ba02e..e05fa09 100644 --- a/themes/buha/layouts/partials/snippets/footer.html +++ b/themes/buha/layouts/partials/snippets/footer.html @@ -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) }}
{{- if eq site.Params.archive true -}} {{ $archive := "Archive" }} @@ -29,23 +29,27 @@ {{- $imprint | strings.FirstUpper -}} {{- end -}}
+{{- end -}} +{{- if or (eq site.Params.rss true) (eq site.Params.misc true) (eq site.Params.sourcecode true) }}
- Misc - {{- if or (in .Site.Params.mainMenu .Section) -}} - {{- with .OutputFormats.Get "rss" -}} - {{- if .Permalink -}} - {{- printf `` .Permalink | safeHTML -}} - {{- end -}} - RSS - {{- if .Permalink -}} - - {{- end -}} - {{- end -}} + {{ if eq site.Params.misc true }}Misc{{ end }} + {{ if eq site.Params.rss true }} + {{- if or (in .Site.Params.mainMenu .Section) -}} + {{- with .OutputFormats.Get "rss" -}} + {{- if .Permalink -}} + {{- printf `` .Permalink | safeHTML -}} + {{- end -}} + RSS + {{- if .Permalink -}} + + {{- end -}} + {{- end -}} + {{ end }} {{ end }} - Sourcecode + {{ if eq site.Params.sourcecode true }}Sourcecode{{ end }}
- +{{ end }} {{- if eq site.Params.contact true }}