Remove [menu.footer]

This commit is contained in:
Djordje Atlialp 2019-02-25 23:27:44 +01:00
parent a7dceab572
commit f1e0ff2fc1
No known key found for this signature in database
GPG key ID: 94FF806E6BF61DD3
3 changed files with 0 additions and 18 deletions

View file

@ -115,16 +115,6 @@ theme = "hello-friend-ng"
identifier = "blog" identifier = "blog"
name = "Blog" name = "Blog"
url = "/posts" url = "/posts"
# Also, there is a option to create extra menu points for the footer
[[menu.footer]]
identifier = "imprint"
name = "Imprint"
url = "/imprint"
[[menu.footer]]
identifier = "privacy"
name = "Data Privacy"
url = "/privacy"
``` ```

View file

@ -111,8 +111,3 @@ disableHugoGeneratorInject = false
identifier = "posts" identifier = "posts"
name = "Posts" name = "Posts"
url = "posts/" url = "posts/"
[[menu.footer]]
identifier = "about-in-footer"
name = "About in Footer"
url = "about-in-footer/"

View file

@ -6,9 +6,6 @@
<span><a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a></span> <span><a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a></span>
{{ end }} {{ end }}
<span>{{ .Site.Copyright| safeHTML }}</span> <span>{{ .Site.Copyright| safeHTML }}</span>
{{ range .Site.Menus.footer }}
<span><a href="{{ .URL }}">{{ .Name }}</a></span>
{{ end }}
<span>{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}</span> <span>{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}</span>
</div> </div>
</div> </div>