template icon indicating copy to clipboard operation
template copied to clipboard

spaces before commas in resume.html interests section

Open mroswell opened this issue 10 months ago • 1 comments

Line 48 of resume.html is still having space issues when listing the interests, even though it's all on the same line, as directed. There are unwanted spaces before the commas.

mroswell avatar Apr 08 '25 02:04 mroswell

This is a weird solution (I did a lot of rounds with Claude.ai) but it works:

<div class="col-lg-9">
  <p class="m-0">
    {% assign output = "" %}
    {% for entry in site.data.bio.interests %}
      {% assign output = output | append: entry.name %}
      
      {% if entry.keywords and entry.keywords.size > 0 %}
        {% assign output = output | append: "(" %}
        {% assign keyword_count = entry.keywords.size %}
        {% for keyword in entry.keywords %}
          {% assign output = output | append: keyword %}
          {% if forloop.last != true %}
            {% assign output = output | append: "," %}
          {% endif %}
        {% endfor %}
        {% assign output = output | append: ")" %}
      {% endif %}
      
      {% if forloop.last != true %}
        {% assign output = output | append: ", " %}
      {% endif %}
    {% endfor %}
    {{ output }}
  </p>

mroswell avatar Apr 08 '25 02:04 mroswell