CHANGE image handling, ADD partials to reuse structure, REFACTOR

This commit is contained in:
Hoernschen 2025-04-17 16:22:33 +02:00
parent 1265491dee
commit 01dcf04b8a
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
36 changed files with 1181 additions and 864 deletions

View file

@ -1,4 +1,5 @@
{{- $footer := .Site.Params.footer }}
{{ if $footer.enabled }}
{{- $social := index $footer "social" }}
{{- $links := index $footer "links" }}
{{ $template := resources.Get "scss/footer.scss" }}
@ -10,9 +11,11 @@
<div class="social-media-footer">
<span>
{{- range $social}}
<a href="{{ .url }}"><i class="icon-{{ .type }}"></i></a>
{{ partial "components/icon.html" . }}
{{- end }}
<a href="/posts/index.xml"><i class="icon-rss"></i></a>
{{ if $footer.rss }}
{{ partial "components/icon.html" (dict "type" "rss" "url" "/posts/index.xml") }}
{{ end }}
</span>
</div>
<div>
@ -26,5 +29,6 @@
© {{ dateFormat "2006" now }} {{ $footer.copyright }}</a>
</div>
</footer>
<a class="totop hide" id="totop" href="#"><i class="icon-angle-up"></i></a>
<script src="/js/totop.js"></script>
{{ end }}
{{ partial "components/button.html" (dict "id" "totop" "type" "fab hide" "url" "#" "icon" "angle-up") }}
<script src="/js/totop.js"></script>