adding footer menu

This commit is contained in:
Florian 2023-01-18 17:03:50 +01:00
parent 94d8927676
commit e3b178e2a8
5 changed files with 31 additions and 0 deletions

View File

@ -244,6 +244,10 @@ paginate = 5
identifier = "showcase"
name = "Showcase"
url = "/showcase"
[[languages.en.menu.footer]]
identifier = "imprint"
name = "Imprint"
url = "/imprint"
[module]
# In case you would like to make changes to the theme and keep it locally in you repository,

View File

@ -0,0 +1,9 @@
.footer-menu {
margin: 0 auto!important;
opacity: .5;
}
@media (max-width: 684px) {
.footer-menu ul {
flex-direction: row;
}
}

View File

@ -11,6 +11,7 @@
@import "post";
@import "pagination";
@import "footer";
@import "footer_menu";
@import "prism";
@import "syntax";

View File

@ -1,3 +1,6 @@
<!-- optional footer menu-->
{{ partial "footer_menu.html" . }}
<footer class="footer">
<div class="footer__inner">
{{ if $.Site.Copyright }}

View File

@ -0,0 +1,14 @@
<!--
individual footer menu
-->
<nav class="footer-menu">
<ul class="navigation-menu__inner">
{{ if gt ($.Site.Menus.footer) 0 }}
{{ range $.Site.Menus.footer }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</nav>