File tree 2 files changed +9
-19
lines changed
2 files changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ <h3>CircuitPython {{ version.version }}</h3>
160
160
{% else %}
161
161
< a target ="_blank " class ="library-link " href ="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name }} ">
162
162
{% endif %}
163
- {{ module_name }}
164
- </ a > {% if module_name != version.modules[version.modules.size - 1] %}, {% endif %}
163
+ {{ module_name }}</ a > {% unless forloop.last %}, {% endunless %}
165
164
{% endfor %}
166
165
</ span >
167
166
</ p >
@@ -172,17 +171,18 @@ <h3>CircuitPython {{ version.version }}</h3>
172
171
< span class ="download-modules {% if version.stable %}stable{% else %}unstable{% endif %} ">
173
172
{% for module_name in version.frozen_libraries %}
174
173
< a target ="_blank " class ="library-link " href ="https://docs.circuitpython.org/projects/{{ module_name | split: 'adafruit_' | last }} ">
175
- {{ module_name }}
176
- </ a > {% if module_name != version.frozen_libraries[version.frozen_libraries.size - 1] %}, {% endif %}
174
+ {{ module_name }}</ a > {% unless forloop.last %}, {% endunless %}
177
175
{% endfor %}
178
176
</ span >
179
177
</ p >
180
178
{% endif %}
181
179
{% if page.features %}
182
180
< p > Features:
183
- {% for feature in page.features %}
184
- < span class ="feature-span "> {{feature}}</ span >
185
- {% endfor %}
181
+ < span class ="features-list ">
182
+ {% for feature in page.features %}
183
+ < a class ="library-link " href ="/downloads?features={{ feature }} "> {{feature}}</ a > {% unless forloop.last %}, {% endunless %}
184
+ {% endfor %}
185
+ </ span >
186
186
</ p >
187
187
{% endif %}
188
188
</ div >
Original file line number Diff line number Diff line change 116
116
background-color : $purple ;
117
117
}
118
118
119
- .download-modules {
119
+ .download-modules , .features-list {
120
120
color : $purple ;
121
121
}
122
122
}
135
135
a .download-button :hover , a .download-button-unrecommended :hover {
136
136
background-color : $purple ;
137
137
}
138
- .download-modules {
138
+ .download-modules , .features-list {
139
139
color : $purple ;
140
140
}
141
141
}
184
184
}
185
185
}
186
186
}
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
- }
197
187
}
198
188
199
189
@media (max-width : $screen-lg ) {
You can’t perform that action at this time.
0 commit comments