diff options
| author | anoduck <11767-anoduck@users.noreply.gitgud.io> | 2024-09-24 03:17:01 -0400 |
|---|---|---|
| committer | anoduck <11767-anoduck@users.noreply.gitgud.io> | 2024-09-24 03:17:20 -0400 |
| commit | ecaa4c30be24fd7fd55eea888ca0a6d18a140d60 (patch) | |
| tree | 03d647a92be5d7d44404fd349c86f9d9c0df0f66 /layouts/partials/GetIllustration.html | |
| parent | 95537baacd1532fdc65db12f80afcffcaa4573f5 (diff) | |
ch-ch-changes
Diffstat (limited to '')
| -rw-r--r-- | layouts/partials/GetIllustration.html | 22 |
1 files changed, 0 insertions, 22 deletions
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 |
