squirrel/layouts/partials/footer.html

30 lines
1.1 KiB
HTML
Raw Permalink Normal View History

{{- $footer := .Site.Params.footer }}
{{- $social := index $footer "social" }}
{{- $links := index $footer "links" }}
2021-02-25 21:23:58 +00:00
{{ $template := resources.Get "scss/footer.scss" }}
{{ if $template }}
{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
2022-06-27 14:09:44 +00:00
<link rel="stylesheet" type="text/css" href="{{ $footer.RelPermalink }}">
2021-02-25 21:23:58 +00:00
{{ end }}
<footer class="footer">
<div class="social-media-footer">
<span>
{{- range $social}}
<a href="{{ .url }}"><i class="icon-{{ .type }}"></i></a>
2021-02-25 21:23:58 +00:00
{{- end }}
<a href="/posts/index.xml"><i class="icon-rss"></i></a>
2021-02-25 21:23:58 +00:00
</span>
</div>
<div>
<ul class="links">
{{- range $links}}
<li class="link"><a href="{{ .url }}">{{ .text }}</a></li>
{{- end }}
</ul>
</div>
<div class="copyright">
2022-06-27 14:09:44 +00:00
© {{ dateFormat "2006" now }} {{ $footer.copyright }}</a>
2021-02-25 21:23:58 +00:00
</div>
</footer>
<a class="totop hide" id="totop" href="#"><i class="icon-angle-up"></i></a>
2021-02-25 21:23:58 +00:00
<script src="/js/totop.js"></script>