Skip to content

Commit ea47fdc

Browse files
authored
Merge pull request #1513 from FoamyGuy/show_features_on_board_page
show features on board download page
2 parents f26dc4c + 92ddaf2 commit ea47fdc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

_includes/download/board.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ <h3>CircuitPython {{ version.version }}</h3>
178178
</span>
179179
</p>
180180
{% endif %}
181+
{% if page.features %}
182+
<p>Features:
183+
{% for feature in page.features %}
184+
<span class="feature-span">{{feature}}</span>
185+
{% endfor %}
186+
</p>
187+
{% endif %}
181188
</div>
182189
{% endfor %}
183190
{% endif %}

assets/sass/pages/_download.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,16 @@
184184
}
185185
}
186186
}
187+
.feature-span {
188+
padding: 2px 4px 2px 4px;
189+
margin-left: 3px;
190+
margin-bottom: 3px;
191+
display: inline-block;
192+
background-color: $purple;
193+
color: #fff;
194+
border-radius: 5px;
195+
font-size: 14px;
196+
}
187197
}
188198

189199
@media (max-width: $screen-lg) {

0 commit comments

Comments
 (0)