From 047f53e1ad87d193a6042b83d92d1b8fc22a99e3 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Wed, 11 Jun 2025 12:27:09 +0100 Subject: [PATCH] Update template.liquid - swap capture to assign --- Adafruit_IO_Template_Emails/template.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_IO_Template_Emails/template.liquid b/Adafruit_IO_Template_Emails/template.liquid index 9c802c0c5..9e8a9cded 100644 --- a/Adafruit_IO_Template_Emails/template.liquid +++ b/Adafruit_IO_Template_Emails/template.liquid @@ -62,11 +62,11 @@ Success rate: {{ success_rate }}% [{%- for i in (1..bar_filled) -%}█{%- endfor Keep being awesome! With love and high-fives! 🙌 --- -{%- capture event_mod -%}{{ total_events | modulo: 3 }}{%- endcapture %} +{% assign event_mod = total_events | modulo: 3 %} {% if event_mod == 0 %} P.S. Remember: Every expert was once a beginner - they're doing brilliantly! 🌟 {% elsif event_mod == 1 %} P.S. Fun fact: Even superheroes had to learn to use the potty! 🦸 {% else %} P.S. Remember: accidents are just practice in disguise! They're doing amazingly! 💕 -{% endif %} \ No newline at end of file +{% endif %}