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

github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzossig <52706977+zzossig@users.noreply.github.com>2020-03-25 02:46:51 +0300
committerGitHub <noreply@github.com>2020-03-25 02:46:51 +0300
commit885938ae5617a255fb491286d36d2bc4d27f8cea (patch)
tree9ed126113037520eac7ea7d90eb6a883a4047a83
parentcf1c87100cec3f1f163cbb75487fb1601edd4563 (diff)
parent4c58632631fd4a2ad903addd1d36bf40e7a5d321 (diff)
Merge pull request #21 from kwv/patch-1
Adds a configuration element for imgWidth
-rw-r--r--layouts/partials/main/landing/section-card.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/main/landing/section-card.html b/layouts/partials/main/landing/section-card.html
index 8d02402..1b98642 100644
--- a/layouts/partials/main/landing/section-card.html
+++ b/layouts/partials/main/landing/section-card.html
@@ -24,7 +24,7 @@
<div class="section__card--item">
{{ with .image }}
<div class="section__card--img-wrapper">
- <img data-src="{{ . | relURL }}" alt="{{ $card.subtitle | default "section image" }}" src="data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' d='M0 0h24v24H0V0z'/%3E%3Cpath fill='%23aaa' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 16H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1zm-4.44-6.19l-2.35 3.02-1.56-1.88c-.2-.25-.58-.24-.78.01l-1.74 2.23c-.26.33-.02.81.39.81h8.98c.41 0 .65-.47.4-.8l-2.55-3.39c-.19-.26-.59-.26-.79 0z'/%3E%3C/svg%3E" class="lazyload section__card--img"/>
+ <img data-src="{{ . | relURL }}" width="{{ $card.imgWidth | default "100px" }}" alt="{{ $card.subtitle | default "section image" }}" src="data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' d='M0 0h24v24H0V0z'/%3E%3Cpath fill='%23aaa' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 16H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1zm-4.44-6.19l-2.35 3.02-1.56-1.88c-.2-.25-.58-.24-.78.01l-1.74 2.23c-.26.33-.02.81.39.81h8.98c.41 0 .65-.47.4-.8l-2.55-3.39c-.19-.26-.59-.26-.79 0z'/%3E%3C/svg%3E" class="lazyload section__card--img"/>
</div>
{{ end }}
<div class="section__card--submain">
@@ -63,4 +63,4 @@
{{ end }}
</div>
{{ end }}
-</div> \ No newline at end of file
+</div>