ADD footer WIP header
This commit is contained in:
parent
06b0b4d643
commit
826abcd7ae
4 changed files with 131 additions and 32 deletions
|
@ -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 }}
|
|
@ -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 }}
|
Loading…
Add table
Add a link
Reference in a new issue