Skip to content

Commit 92ddaf2

Browse files
committed
show features on board download page
1 parent 59fe0d4 commit 92ddaf2

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
@@ -172,6 +172,13 @@ <h3>CircuitPython {{ version.version }}</h3>
172172
</span>
173173
</p>
174174
{% endif %}
175+
{% if page.features %}
176+
<p>Features:
177+
{% for feature in page.features %}
178+
<span class="feature-span">{{feature}}</span>
179+
{% endfor %}
180+
</p>
181+
{% endif %}
175182
</div>
176183
{% endfor %}
177184
{% endif %}

assets/sass/pages/_download.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@
178178
}
179179
}
180180
}
181+
.feature-span {
182+
padding: 2px 4px 2px 4px;
183+
margin-left: 3px;
184+
margin-bottom: 3px;
185+
display: inline-block;
186+
background-color: $purple;
187+
color: #fff;
188+
border-radius: 5px;
189+
font-size: 14px;
190+
}
181191
}
182192

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

0 commit comments

Comments
 (0)