Override the generated tag for "Tailwind CSS"

This commit is contained in:
Oliver Davies 2024-07-16 23:25:24 +01:00
parent 87c2efcadd
commit 2ebaaa92c6

View file

@ -17,6 +17,9 @@ use:
{% for email in data.daily_emails[:1] %}
{% set tags = [] %}
{%- for tag in ['dev']|merge(email.tags|default([])) -%}
{% if tag == "tailwind-css" %}
{% set tag = "TailwindCSS" %}
{% endif %}
{% set words = tag|split('-') -%}
{% if words|length == 1 %}
{% set tags = tags|merge(['#' ~ tag]) %}