-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaced senja with own testimonial rendering
- Loading branch information
1 parent
b06d810
commit b915d01
Showing
3 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% for testimonial in include.testimonials %} | ||
<div class="swiper-slide h-auto pt-4 pb-3 px-2"> | ||
<div class="d-flex flex-column h-100 px-2 px-sm-0 mb-0"> | ||
{{ testimonial.text | markdownify }} | ||
<div class="d-flex align-items-center border-0 pt-3"> | ||
{% if testimonial.avatar == '' %} | ||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /><path d="M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855" /></svg> | ||
{% else %} | ||
<img src="/images/testimonials/{{ testimonial.avatar }}" width="48" class="rounded-circle ms-n1" alt="{{ testimonial.name }}"> | ||
{% endif %} | ||
<div class="ps-2 ms-1"> | ||
<h6 class="fs-base fw-semibold mb-0">{{ testimonial.name }}</h6> | ||
<span class="fs-sm text-muted"> | ||
{% if testimonial.url != '' and testimonial.company == '' %} | ||
<a href="{{ testimonial.url }}" target="_blank" class="text-muted text-decoration-none">{{ testimonial.position }}</a> | ||
{% elsif testimonial.position != '' %} | ||
{{ testimonial.position }} | ||
{% endif %} | ||
{% if testimonial.url != '' and testimonial.company != '' %} | ||
– <a href="{{ testimonial.url }}" target="_blank" class="text-muted text-decoration-none">{{ testimonial.company }}</a> | ||
{% elsif testimonial.company != '' %} | ||
– {{ testimonial.company }} | ||
{% endif %} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} |