diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-29 18:41:55 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-29 18:41:55 +0200 |
commit | bd4e529b57b3a70248845c48e4f54e3ec46b8035 (patch) | |
tree | ab2226f6f43b3d37242a34b70add2db5f88b63db /downloads | |
parent | ed5b2c1bc595a5fe2e64071c5998193607e4c924 (diff) | |
download | alpine-mksite-bd4e529b57b3a70248845c48e4f54e3ec46b8035.tar.bz2 alpine-mksite-bd4e529b57b3a70248845c48e4f54e3ec46b8035.tar.xz |
downloads: refactor ordering
There are no way to predict the order in which lua will iterate over a
hashtable so we use an array instead.
We also set a fixed number of colors which we pick insstead of hardcode
the flavor name in the CSS. This is so we can change name of the flavors
without needing to modify the CSS.
Diffstat (limited to 'downloads')
-rw-r--r-- | downloads/index.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/downloads/index.md b/downloads/index.md index f5167f3..4876876 100644 --- a/downloads/index.md +++ b/downloads/index.md @@ -13,7 +13,7 @@ {{#releases.flavors}} <div class="pure-u-1 pure-u-md-1-2"> - <div class="download flavor-{{flavor_name}}"> + <div class="download flavor-color-{{flavor_color}}"> <h2>{{flavor_title}}</h2> <div class="features"> <ul> @@ -25,7 +25,7 @@ <div class="buttons"> {{#archs}} <a class="pure-button" href="{{iso_url}}"> - <i class="fa fa-download"></i> + <i class="fa fa-download"></i> {{arch}} </a> {{/archs}} |