Skip to content

Commit

Permalink
fix comma spacing and extra comma at end of modules list
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Nov 4, 2024
1 parent c764990 commit 8a284f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions _includes/download/board.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ <h3>CircuitPython {{ version.version }}</h3>
{% else %}
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name }}">
{% endif %}
{{ module_name }}
</a>{% if module_name != version.modules[version.modules.size - 1] %}, {% endif %}
{{ module_name }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
</p>
Expand All @@ -172,8 +171,7 @@ <h3>CircuitPython {{ version.version }}</h3>
<span class="download-modules {% if version.stable %}stable{% else %}unstable{% endif %}">
{% for module_name in version.frozen_libraries %}
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/projects/{{ module_name | split: 'adafruit_' | last }}">
{{ module_name }}
</a>{% if module_name != version.frozen_libraries[version.frozen_libraries.size - 1] %}, {% endif %}
{{ module_name }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
</p>
Expand Down

0 comments on commit 8a284f5

Please sign in to comment.