From 9825702ecb0c98bedc7ff78600066af7bb982475 Mon Sep 17 00:00:00 2001 From: Elwais Golbuu <146903239+elwais@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:09:13 -1000 Subject: [PATCH] Fix resume.html space between interests commas Using hyphens at the start and end of the Liquid (templating system used by Jekyll) tags allowed for whitespace stripping, which removes the spaces before the commas and around the parentheses (in the case of multiple keywords). See https://shopify.github.io/liquid/basics/whitespace/ for more information. --- resume.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/resume.html b/resume.html index d3c4fd8..cf5f5de 100644 --- a/resume.html +++ b/resume.html @@ -42,10 +42,18 @@

Interests

+ {% for entry in site.data.bio.interests %} - {{ entry.name }} - - {% if entry.keywords and entry.keywords.size > 0 %}({% for keyword in entry.keywords %}{{ keyword }}{% if forloop.last != true %},{% endif %}{% endfor %}){% endif %}{% if forloop.last != true %}, {% endif %} + {{ entry.name -}} + {% if entry.keywords and entry.keywords.size > 0 %} ( + {%- for keyword in entry.keywords -%} + {{ keyword }} + {%- if forloop.last != true -%}, + {% endif %} + {%- endfor -%} + ) {%- endif %} + {%- if forloop.last != true -%}, + {% endif %} {% endfor %}