summaryrefslogtreecommitdiff
path: root/themes/LoveIt/layouts/partials/plugin/img.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2022-10-21 21:01:11 +0200
committerChristoph Cullmann <cullmann@kde.org>2022-10-21 21:01:11 +0200
commit582a8a33aff644a6b07534aaf677973abc6f154c (patch)
tree069a34670b1b91041ef9f3fcb73192dd05c60963 /themes/LoveIt/layouts/partials/plugin/img.html
parent038eabdda56dbfdbbba4328ac035cc4d77e8d80d (diff)
use different theme that is a lot slimer
Diffstat (limited to 'themes/LoveIt/layouts/partials/plugin/img.html')
-rw-r--r--themes/LoveIt/layouts/partials/plugin/img.html46
1 files changed, 0 insertions, 46 deletions
diff --git a/themes/LoveIt/layouts/partials/plugin/img.html b/themes/LoveIt/layouts/partials/plugin/img.html
deleted file mode 100644
index 8468583..0000000
--- a/themes/LoveIt/layouts/partials/plugin/img.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{{- /* lazysizes and lightgallery */ -}}
-{{- $src := .Src -}}
-{{- $width := .Width -}}
-{{- $height := .Height -}}
-{{- with dict "Path" $src "Resources" .Resources | partial "function/resource.html" -}}
- {{- $src = .RelPermalink -}}
- {{- $width = $width | default .Width -}}
- {{- $height = $height | default .Height -}}
-{{- end -}}
-
-{{- $small := .SrcSmall | default $src -}}
-{{- with dict "Path" .SrcSmall "Resources" .Resources | partial "function/resource.html" -}}
- {{- $small = .RelPermalink -}}
-{{- end -}}
-
-{{- $large := .SrcLarge | default $src -}}
-{{- with dict "Path" .SrcLarge "Resources" .Resources | partial "function/resource.html" -}}
- {{- $large = .RelPermalink -}}
-{{- end -}}
-
-{{- $alt := .Alt | default $src -}}
-{{- $loading := resources.Get "svg/loading.svg" | minify -}}
-{{- if .Linked -}}
- <a class="lightgallery" href="{{ $large | safeURL }}" title="{{ .Title | default $alt }}" data-thumbnail="{{ $small | safeURL }}"{{ with .Caption }} data-sub-html="<h2>{{ . }}</h2>{{ with $.Title }}<p>{{ . }}</p>{{ end }}"{{ end }}{{ with .Rel }} rel="{{ . }}"{{ end }}>
- <img
- class="lazyload{{ with .Class }} {{ . }}{{ end }}"
- src="{{ $loading.RelPermalink }}"
- data-src="{{ $src | safeURL }}"
- data-srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x"
- data-sizes="auto"
- alt="{{ $alt }}"
- {{- with $width }} width="{{ . }}"{{ end }}
- {{- with $height }} height="{{ . }}"{{ end }} />
- </a>
-{{- else -}}
- <img
- class="lazyload{{ with .Class }} {{ . }}{{ end }}"
- src="{{ $loading.RelPermalink }}"
- data-src="{{ $src | safeURL }}"
- data-srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x"
- data-sizes="auto"
- alt="{{ $alt }}"
- title="{{ .Title | default $alt }}"
- {{- with $width }} width="{{ . }}"{{ end }}
- {{- with $height }} height="{{ . }}"{{ end }} />
-{{- end -}}