Skip to content

Commit

Permalink
section_listing: support multiple badges
Browse files Browse the repository at this point in the history
  • Loading branch information
theonlypwner committed Dec 8, 2024
1 parent df52e37 commit aa85f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_layouts/section_listing.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>{{ section.name }}</h2>
{%- for item in section.items %}
<div class="col-sm-6 col-md-4 col-xl-3 mb-3 grid-item">
<div class="card{% if item.badges %} border-{{ item.badges[0][0] }}{% endif %}">
<div class="card-header">{{ item.name }}{% if item.badges %} <span class="badge text-bg-{{ item.badges[0][0] }}">{{ item.badges[0][1] }}</span>{% endif %}</div>
<div class="card-header">{{ item.name }}{% for badge in item.badges %} <span class="badge text-bg-{{ badge[0] }}">{{ badge[1] }}</span>{% endfor %}</div>
<div class="card-body">
{%- if item.desc %}
<p class="card-text">{{ item.desc }}</p>
Expand Down

0 comments on commit aa85f9f

Please sign in to comment.