add an option to add links at the bottom of the page as well
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
This commit is contained in:
parent
24f402e9f1
commit
1a2693cc15
5 changed files with 67 additions and 1 deletions
|
|
@ -1,5 +1,22 @@
|
|||
{{ $headless := .Site.GetPage "/homepage" }}
|
||||
{{ $sections := $headless.Resources.ByType "page" }}
|
||||
{{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="inner">
|
||||
{{ if ne .Site.Params.footer.showFooterLinks false }}
|
||||
<section class="links">
|
||||
<ol>
|
||||
{{ range where $sections ".Params.footer_menu" "eq" true }}
|
||||
<li>
|
||||
<a href="{{ .Params.detailed_page_path }}">{{ .Params.footer_menu_title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
</section>
|
||||
<hr />
|
||||
{{ end }}
|
||||
|
||||
{{ if ne .Site.Params.footer.showContactIcons false }}
|
||||
{{ with .Site.Params.contact }}
|
||||
<section class="icons">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue