From 1a2eb6a11f295dcf9e7ec95954662b3b9f1d798d Mon Sep 17 00:00:00 2001 From: it-gro <13005925+it-gro@users.noreply.github.com> Date: Sun, 13 Jun 2021 20:06:58 +0200 Subject: wip --- layouts/partials/front.testimonials.carousel.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/layouts/partials/front.testimonials.carousel.html b/layouts/partials/front.testimonials.carousel.html index 26f5f4c..1fe96e1 100644 --- a/layouts/partials/front.testimonials.carousel.html +++ b/layouts/partials/front.testimonials.carousel.html @@ -18,7 +18,8 @@ {{- if or $.Site.Params.debug (findRE `\bhtml-comment\b` $.Site.Params.traceFlags) }} {{ `` | safeHTML }} {{- end}} - {{- range $index, $element := sort .Site.Data.testimonials `weight` }} + {{/* {{- range $index, $element := sort .Site.Data.testimonials `weight` }} */}} + {{- range $index, $element := sort .Site.Data.testimonials }}
{{ template `front-testimonials-entry` (dict `page` $.Page `element` $element) }}
@@ -59,15 +60,15 @@ {{- if $ourElement.name }}
-
+
{{- $myImgClass := `w3-circle w3-right`}} - {{- $myImgStyle := `width:40%`}} + {{- $myImgStyle := `width:20%`}} {{- $myImg := $ourElement.resImg }} {{/* case sensitive ! */}} - {{- $myImgCmd := $ourElement.resImgCmd | default `Resize` }} - {{- $myImgOpt := $ourElement.resImgOpt | default `200x` }} + {{- $myImgCmd := $ourElement.resImgCmd | default `Fill` }} + {{- $myImgOpt := $ourElement.resImgOpt | default `150x150 Top` }} {{ partial `resource.image.html` (dict `page` $ourPage `class` $myImgClass `style` $myImgStyle `img` $myImg `cmd` $myImgCmd `opt` $myImgOpt ) }}
-- cgit v1.2.3