Impressum und Datenschutz werden nun ausgeblendet wenn sie nicht angegeben wurden
This commit is contained in:
parent
5c1a805896
commit
8887a9e862
2 changed files with 7 additions and 2 deletions
|
@ -80,6 +80,7 @@ theme = "BlogAMore"
|
||||||
[Params]
|
[Params]
|
||||||
# Beschreibung der Seite selbst
|
# Beschreibung der Seite selbst
|
||||||
description = "Die Beschreibung der Seite"
|
description = "Die Beschreibung der Seite"
|
||||||
|
# Der Link für Impressum und Datenschutz (Wenn nicht angegeben, werden sie ausgeblendet)
|
||||||
imprint = "/about/imprint/"
|
imprint = "/about/imprint/"
|
||||||
privacy = "/about/privacy/"
|
privacy = "/about/privacy/"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
<footer class="bg-dark text-bg-dark">
|
<footer class="bg-dark text-bg-dark">
|
||||||
<nav class="nav justify-content-center navbar-expand-md navbar-dark ">
|
<nav class="nav justify-content-center navbar-expand-md navbar-dark ">
|
||||||
<a class="nav-link" href="{{- index .Site.Params "Imprint" | default "#" -}}">Impressum</a>
|
{{ with .Site.Params.Imprint }}
|
||||||
<a class="nav-link" href="{{- index .Site.Params "Privacy" | default "#" -}}">Datenschutz</a>
|
<a class="nav-link" href="{{- . -}}">Impressum</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.Privacy }}
|
||||||
|
<a class="nav-link" href="{{- . -}}">Datenschutz</a>
|
||||||
|
{{ end }}
|
||||||
{{ if (not .IsHome) }}
|
{{ if (not .IsHome) }}
|
||||||
{{ with .OutputFormats.Get "rss" -}}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
<a class="nav-link" href="{{- .Permalink | relURL -}}">RSS-Feed</a>
|
<a class="nav-link" href="{{- .Permalink | relURL -}}">RSS-Feed</a>
|
||||||
|
|
Loading…
Reference in a new issue