{{ $.Scratch.Delete "social_list" }} {{ $social_params := slice "github" "twitter" "bluesky" "instagram" "rss" }} {{ range $social_params }} {{ if isset site.Params.social . }} {{ $.Scratch.Add "social_list" (slice .) }} {{ end }} {{ end }} {{ $ic := newScratch }} {{ range $value := .Site.Data.landing }} {{ $template := string (replaceRE `( |-{1,})` "_" $value.template) }} {{ if eq $template "image_compare" }} {{ if $value.enable }} {{ $ic.Add "enabled" (slice $value.enable) }} {{ range $value.items }} {{ $ic.Add "config" (slice (.config | jsonify | safeJS)) }} {{ end }} {{ end }} {{- end }} {{ end }} {{ $.Scratch.Set "image_compare_enabled" (in ($ic.Get "enabled") true) }} {{- partial "head.html" . -}}