34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{{- $footer := .Site.Params.footer }}
|
|
{{ if $footer.enabled }}
|
|
{{- $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}}
|
|
{{ partial "components/icon.html" . }}
|
|
{{- end }}
|
|
{{ if $footer.rss }}
|
|
{{ partial "components/icon.html" (dict "type" "rss" "url" "/posts/index.xml") }}
|
|
{{ end }}
|
|
</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>
|
|
{{ end }}
|
|
{{ partial "components/button.html" (dict "id" "totop" "type" "fab hide" "url" "#" "icon" "angle-up") }}
|
|
<script src="/js/totop.js"></script>
|