ADD footer WIP header

This commit is contained in:
Hoernschen 2023-12-25 23:14:57 +01:00
parent 06b0b4d643
commit 826abcd7ae
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
4 changed files with 131 additions and 32 deletions

View file

@ -1 +1,23 @@
<div>test</div>
{{ with .Site.Params.footer }}
<footer class="footer">
{{ if .social }}
<div class="social">
{{ range .social }}
<a href="{{ .url }}"><i class="{{ if .type }} icon-{{ .type }} {{ else }} icon-link {{ end }}"></i></a>
{{ end }}
</div>
{{ end }}
{{ if .links }}
<ul class="links">
{{- range .links }}
<li class="link"><a href="{{ .url }}">{{ .text }}</a></li>
{{- end }}
</ul>
{{ end }}
{{ if .copyright }}
<p class="copyright">
© {{ dateFormat "2006" now }} {{ .copyright }}</a>
</p>
{{ end }}
</footer>
{{ end }}

View file

@ -1 +1,13 @@
<div>test</div>
{{ with .Site.Params.header }}
<header id="header" class="header">
<a class="home" href="/#"><i class="icon-home"></i></a>
<div class="items">
{{ if .links }}
{{ range .links }}
<a class="item" href="{{ .url }}">{{ .text }}</a>
{{ end }}
{{ end }}
</div>
<a href="/#"><i class="icon-adjust"></i></a>
</header>
{{ end }}