From ecaa4c30be24fd7fd55eea888ca0a6d18a140d60 Mon Sep 17 00:00:00 2001 From: anoduck <11767-anoduck@users.noreply.gitgud.io> Date: Tue, 24 Sep 2024 03:17:01 -0400 Subject: ch-ch-changes --- layouts/partials/GetIllustration.html | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 layouts/partials/GetIllustration.html (limited to 'layouts/partials/GetIllustration.html') diff --git a/layouts/partials/GetIllustration.html b/layouts/partials/GetIllustration.html deleted file mode 100644 index 1b21f3b..0000000 --- a/layouts/partials/GetIllustration.html +++ /dev/null @@ -1,22 +0,0 @@ -{{- $item := .item -}} -{{- $illustration := "" -}} -{{- $style := "img-wrap mx-auto mx-md-0" -}} -{{- $size := .size | default "col-12 col-sm-4 col-lg-12" -}} - -{{ if $item.Params.icon }} - {{- $icon := (or (and (reflect.IsMap $item.Params.Icon) $item.Params.Icon.url) $item.Params.Icon) -}} - {{- $mode := and (reflect.IsMap $item.Params.Icon) $item.Params.Icon.mode -}} - {{ if eq (lower (path.Ext $icon)) ".json" }} - {{ $illustration = partial "assets/animation.html" (dict "data" $icon "mode" $mode "loop" false "hover" true "class" (printf "mx-auto text-center %s" $size)) }} - {{ else }} - {{ $illustration = partial "assets/icon.html" (dict "icon" "mode" $mode $icon "wrapper" "mx-auto text-center")}} - {{ end }} -{{ else }} - {{- $thumbnail := "" -}} - {{ if reflect.IsMap $item.Params.Thumbnail }}{{ $thumbnail = $item.Params.Thumbnail.url }}{{ else }}{{ $thumbnail = $item.Params.Thumbnail }}{{ end }} - {{- if $thumbnail }} - {{ $illustration = partial "assets/image.html" (dict "url" $thumbnail "ratio" "16x9" "wrapper" $style "inner" "rounded" "title" $item.Site.Title) }} - {{ end }} -{{ end }} - -{{ return $illustration }} \ No newline at end of file -- cgit v1.2.3