Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serg/yourfolio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserg <contact@sergfurtak.com>2020-07-12 15:00:43 +0300
committerserg <contact@sergfurtak.com>2020-07-12 15:00:43 +0300
commit0850133e7d8794f991a9181ee8131f70f928ca3a (patch)
tree1f66a78eda074c6eddbaa710293100e3006615ec
parentaeea496ddb1afbdfccfcba9cb33e5b7a49644cdd (diff)
remove the partial for responsive images defined manually
-rw-r--r--layouts/partials/modules/responsive-image.html18
1 files changed, 0 insertions, 18 deletions
diff --git a/layouts/partials/modules/responsive-image.html b/layouts/partials/modules/responsive-image.html
deleted file mode 100644
index 6e8f0eb..0000000
--- a/layouts/partials/modules/responsive-image.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{$page := .page}}
-{{- with .image -}}
- {{- $imageUrl := .url -}}
- {{- $imageAltText := .alt_text -}}
- {{- $responsiveSources := .responsive_sources -}}
- {{- with $imageUrl -}}
- <picture>
- {{- with $responsiveSources -}}
- {{- range $imageWidth, $imageSourceUrl := . -}}
- {{- $page.Scratch.Add "imageSrcSetArray" (slice (print ($imageSourceUrl | relURL) " " $imageWidth "w")) -}}
- {{- end -}}
- <source media="(max-width: 46.25em)" srcset="{{delimit ($page.Scratch.Get "imageSrcSetArray") ", "}}">
- {{- $page.Scratch.Delete "imageSrcSetArray" -}}
- {{- end -}}
- <img class="image-item" src="{{. | relURL}}" alt="{{$imageAltText}}">
- </picture>
- {{- end -}}
-{{- end -}} \ No newline at end of file