Skip to content

Commit 883aebc

Browse files
committed
Hide binary architecture sections without files
1 parent e3acaac commit 883aebc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

downloads/index.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,23 @@ are available below.
220220
</p>
221221

222222
{% for architecture in page.architectures %}
223-
<h6 class="card-subtitle text-muted">{{ architecture.description }}</h6>
224-
<p class="card-text ml-2">
223+
{% assign show_architecture_description = true %}
225224
{% for bin in page.binaries %}
226225
{% assign asset_filename = "wxMSW-" | append: release_version_bin | append: "_" | append: compiler.id | append: architecture.postfix | append: "_" | append: bin.id | append: ".7z" %}
227226
{% assign asset = release_assets | where: "name", asset_filename | first %}
228227
{% if asset %}
229-
<a href="{{ asset.browser_download_url }}" class="wxdl_{{ asset.id }}">{{ bin.description }}</a>
230-
<br />
228+
{% if show_architecture_description %}
229+
<h6 class="card-subtitle text-muted">{{ architecture.description }}</h6>
230+
<p class="card-text ml-2">
231+
{% assign show_architecture_description = false %}
232+
{% endif %}
233+
<a href="{{ asset.browser_download_url }}" class="wxdl_{{ asset.id }}">{{ bin.description }}</a>
234+
<br />
231235
{% endif %}
232236
{% endfor %}
233-
</p>
237+
{% unless show_architecture_description %}
238+
</p>
239+
{% endunless %}
234240
{% endfor %}
235241

236242
</div>

0 commit comments

Comments
 (0)