{% assign sorted_testimonials = site.testimonials | where: "lang", site.active_lang | sort: 'order' %} {% assign verbose_testimonials = "" | split: "" %} {% assign logo_testimonials = "" | split: "" %} {% for testimonial in sorted_testimonials %} {% capture trimmed_content %}{{ testimonial.content | strip }}{% endcapture %} {% capture trimmed_logo %}{{ testimonial.company_logo | strip }}{% endcapture %} {% if trimmed_logo != "" and trimmed_content == ""%} {% assign logo_testimonials = logo_testimonials | push: testimonial %} {% elsif trimmed_content != "" and trimmed_logo == ""%} {% assign verbose_testimonials = verbose_testimonials | push: testimonial %} {% elsif trimmed_content != "" and trimmed_logo != "" %} {% assign logo_testimonials = logo_testimonials | push: testimonial %} {% assign verbose_testimonials = verbose_testimonials | push: testimonial %} {% endif %} {% endfor %} {% if include.display=="type-1"%} {{ site.data[site.active_lang].texts.testimonials.type-1.title | liquify | markdown_render }} {{ site.data[site.active_lang].texts.testimonials.type-1.subtitle | liquify | markdown_render }} {% for post in verbose_testimonials %} {{ post.author }} {{ post.company }} {{ post.location }} {{ post.content }} {% endfor %} {% elsif include.display=="type-2" %} {{ site.data[site.active_lang].texts.testimonials.type-2.title | liquify | markdown_render }} {{ site.data[site.active_lang].texts.testimonials.type-2.subtitle | liquify | markdown_render }} {% for post in verbose_testimonials %} {{ post.author }} {{ post.company }} {{ post.location }} {{ post.content }} {% endfor %} {% elsif include.display=="logo-carousel"%} {{ site.data[site.active_lang].texts.testimonials.logo_carousel.title | liquify }} {{ site.data[site.active_lang].texts.testimonials.logo_carousel.subtitle | liquify }} {% for post in logo_testimonials %} {{ post.company }} {% endfor %} {% endif %}
{{ post.content }}
{{ site.data[site.active_lang].texts.testimonials.logo_carousel.subtitle | liquify }}
{{ post.company }}