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

github.com/it-gro/hugo-theme-w3css-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-gro <13005925+it-gro@users.noreply.github.com>2021-06-13 21:06:58 +0300
committerit-gro <13005925+it-gro@users.noreply.github.com>2021-06-13 21:06:58 +0300
commit1a2eb6a11f295dcf9e7ec95954662b3b9f1d798d (patch)
tree4a7236cca1782908daa43b0a9745de8dcc844077
parent8dff0bdabd86dc4ff29565bcac001b84d7036eef (diff)
wip
-rw-r--r--layouts/partials/front.testimonials.carousel.html11
1 files 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) }}
{{ `<!-- range .Site.Data.testimonials -->` | 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 }}
<div class='w3-card {{ default `w3-theme-l5` ($.Site.Param `colorFrontTestimonialsCarouselCard`)}} '>
{{ template `front-testimonials-entry` (dict `page` $.Page `element` $element) }}
</div> <!-- w3-card -->
@@ -59,15 +60,15 @@
</div>
{{- if $ourElement.name }}
<div class="w3-container">
- <div class="w3-cell"><i class="fas fa-quote-left w3-jumbo w3-text-theme"></i></div>
+ <div class="w3-cell"><i class="fas fa-quote-left w3-xxxlarge w3-text-theme"></i></div>
<div class="w3-cell">
{{- $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 ) }}
<div class="w3-right">