adding footer menu
This commit is contained in:
parent
94d8927676
commit
e3b178e2a8
@ -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,
|
||||
|
9
assets/css/footer_menu.scss
Normal file
9
assets/css/footer_menu.scss
Normal file
@ -0,0 +1,9 @@
|
||||
.footer-menu {
|
||||
margin: 0 auto!important;
|
||||
opacity: .5;
|
||||
}
|
||||
@media (max-width: 684px) {
|
||||
.footer-menu ul {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
@ -11,6 +11,7 @@
|
||||
@import "post";
|
||||
@import "pagination";
|
||||
@import "footer";
|
||||
@import "footer_menu";
|
||||
|
||||
@import "prism";
|
||||
@import "syntax";
|
||||
|
@ -1,3 +1,6 @@
|
||||
<!-- optional footer menu-->
|
||||
{{ partial "footer_menu.html" . }}
|
||||
|
||||
<footer class="footer">
|
||||
<div class="footer__inner">
|
||||
{{ if $.Site.Copyright }}
|
||||
|
14
layouts/partials/footer_menu.html
Normal file
14
layouts/partials/footer_menu.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user