added footer menu

This commit is contained in:
Vrifox 2020-09-20 19:52:34 +02:00
parent 4040fc3aa8
commit c04f6c8301
2 changed files with 11 additions and 14 deletions

View file

@ -3,22 +3,28 @@ languageCode: en-us
title: vrifox.cc title: vrifox.cc
enableRobotsTXT: true enableRobotsTXT: true
params: params:
version: 2020-09 version: 2020-09-20
menu: menu:
main: main:
- identifier: blog - identifier: blog
name: Blog name: Blog
title: blog title: blog
url: /blog url: /blog
weight: 2 weight: 1
- identifier: projects - identifier: projects
name: Projects name: Projects
title: projects title: projects
url: /projects url: /projects
weight: 3 weight: 2
links: links:
- identifier: mastodon - identifier: mastodon
name: Mastodon name: Mastodon
title: mastodon title: mastodon
url: https://social.anoxinon.de/@vrifox url: https://social.anoxinon.de/@vrifox
weight: 4 weight: 1
footer:
- identifier: feed
name: RSS-Feed
title: RSS-Feed
url: https://vrifox.cc/vrifox.cc_hugo/blog/index.xml
weight: 1

View file

@ -6,16 +6,7 @@
<section class="website-subnav"> <section class="website-subnav">
<ul> <ul>
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.footer }}
<li>
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
<li>|</li>
{{ range .Site.Menus.links }}
<li> <li>
<a href="{{ .URL }}"> <a href="{{ .URL }}">
{{ .Pre }} {{ .Pre }}