squirrel/layouts/partials/footer.html
2022-06-27 16:09:44 +02:00

30 lines
No EOL
1.1 KiB
HTML

{{- $footer := .Site.Params.footer }}
{{- $social := index $footer "social" }}
{{- $links := index $footer "links" }}
{{ $template := resources.Get "scss/footer.scss" }}
{{ if $template }}
{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $footer.RelPermalink }}">
{{ end }}
<footer class="footer">
<div class="social-media-footer">
<span>
{{- range $social}}
<a href="{{ .url }}"><i class="fab fa-{{ .type }}"></i></a>
{{- end }}
<a href="/posts/index.xml"><i class="fas fa-rss"></i></a>
</span>
</div>
<div>
<ul class="links">
{{- range $links}}
<li class="link"><a href="{{ .url }}">{{ .text }}</a></li>
{{- end }}
</ul>
</div>
<div class="copyright">
© {{ dateFormat "2006" now }} {{ $footer.copyright }}</a>
</div>
</footer>
<a class="totop hide" id="totop" href="#"><i class="fas fa-chevron-up"></i></a>
<script src="/js/totop.js"></script>