Skip to content

Commit

Permalink
added fallback avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Jul 22, 2024
1 parent eb457bd commit 11e8d72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kimai_v1_repo: https://github.com/kimai/kimai1
kimai_v2_docker: https://github.com/kimai/kimai
kimai_v2_composer_flags: "--no-dev --optimize-autoloader -n"
testimonial_add: "https://forms.gle/4vqHS7yR4DM3dvCM8"
avatar_fallback: '<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><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>'

cloud:
country: Austria
Expand Down
4 changes: 2 additions & 2 deletions _includes/testimonials-cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<div class="card-body pt-1 mt-3">
<figcaption class="d-flex align-items-center border-0 pt-0 mt-n2 mt-lg-0">
{% if testimonial.avatar == '' %}
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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>
{{ site.avatar_fallback }}
{% else %}
<img src="/images/testimonials/{{ testimonial.avatar }}" width="60" class="rounded-circle" alt="{{ testimonial.name }}">
<img src="/images/testimonials/{{ testimonial.avatar }}" width="60" class="rounded-circle" alt="{{ testimonial.name }}">
{% endif %}
<div class="ps-3">
<h6 class="fw-semibold lh-base mb-0">{{ testimonial.name }}</h6>
Expand Down
4 changes: 2 additions & 2 deletions _includes/testimonials-slider-plain.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{{ 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>
{{ site.avatar_fallback }}
{% else %}
<img src="/images/testimonials/{{ testimonial.avatar }}" width="48" class="rounded-circle ms-n1" alt="{{ testimonial.name }}">
<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>
Expand Down

0 comments on commit 11e8d72

Please sign in to comment.