added footer columns
This commit is contained in:
parent
22a001ea42
commit
0d3aeb96fa
4 changed files with 52 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<footer>
|
||||
<hr />
|
||||
{{- partial "inject/footer.html" . -}}
|
||||
{{- partial "footer_columns.html" . -}}
|
||||
<p><small>
|
||||
{{ now.Format "2006" }} © {{ .Site.Copyright | markdownify }}
|
||||
</small></p>
|
||||
|
|
|
|||
12
layouts/partials/footer_columns.html
Normal file
12
layouts/partials/footer_columns.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{ if (and (.Site.Params.enableFooterColumns | default false) .Site.Data.footer_columns) }}
|
||||
<div class="footerColumns">
|
||||
{{ range .Site.Data.footer_columns }}
|
||||
<ul class="notlist">
|
||||
<li><strong>{{ .title }}</strong></li>
|
||||
{{ range .links }}
|
||||
<li><a target="_blank" href="{{ .link }}">{{ .title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue