Skip to content

Commit 2f87280

Browse files
committed
Flatten downloads page
This design was intended to help users years ago to decide between 32-bit and 64-bit images for PC/Mac, amongst many other offerings. Today, the distro is pretty much only an official desktop image. To simplify the user experience and future maintenance, present everything on the same page. Drop the 'post download' page, except preserve the download tip. Closes #77
1 parent 9569878 commit 2f87280

File tree

20 files changed

+301
-1088
lines changed

20 files changed

+301
-1088
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Build Website
3434
run: |
35-
scripts/build.sh --magnet-uri
35+
scripts/build.sh
3636
3737
- name: Proofing
3838
run: |

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ _site
33
.sass-cache
44
.jekyll-cache
55
.jekyll-metadata
6+
7+
# Ruby
8+
.bundle
69
vendor/
710

8-
# Generated at build
11+
# Locale generation
912
*.mo
1013
pages/i18n/
1114
_data/**/
12-
pages/autogen/
1315
_posts/*.*.md
14-
15-
# Misc
16-
*.directory
17-
.bundle

EDITING.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,7 @@ See [`_data/navigation.yml`](_data/navigation.yml) for the correct value.
6262

6363
## Downloads
6464

65-
The data is stored in `_data/downloads.yml`:
66-
67-
* The **`releases`** key lists the versions currently available.
68-
* The **`arch`** key is a list of architectures. When adding/removing here, make changes in `pages/download.md` too.
69-
* The **`downloads`** key lists the downloads (releases) for each `arch`.
70-
71-
Architectures may include ports to other devices, such as `gpd_pocket`.
72-
73-
The URL, torrent and magnet URI is required. To obtain the magnet
74-
link automagically, set the `magnet-uri` key to `autogen` like so:
75-
76-
```
77-
- release: bionic
78-
~~snip~~
79-
magnet-uri: autogen
80-
```
81-
82-
Then pass `--magnet-uri` to the `build` or `watch` script, which will overwrite
83-
`autogen` with the actual URI. This requires `transmission-show` to be installed.
84-
85-
./scripts/watch.sh --magnet-uri
65+
The metadata and links for downloads is stored in `_data/downloads.yml`.
8666

8767

8868
## Layouts (`_layouts`)
@@ -228,12 +208,12 @@ youtube:
228208

229209
### Pre-determined
230210

231-
These are pre-determined for special purposes and shouldn't be used for new pages.
211+
The following layouts should be ignored when creating new pages. These have
212+
logic for specific pages.
232213

233214
* `blog-index`
234215
* `download`
235216
* `feature-grid`
236-
* `post-download`
237217
* `search`
238218

239219
## Adding Blog Posts
@@ -264,7 +244,7 @@ Usually to present call to actions, commonly used on the blog.
264244
{% include blog/jumbotron.html
265245
266246
title = "Download Ubuntu MATE today"
267-
text = "This new release will be first available for PC/Mac users."
247+
text = "This new release is available for PC/Mac users."
268248
button_text = "Download"
269249
button_url = "/download/"
270250
@@ -282,7 +262,7 @@ inside this `include` on the page:
282262

283263
#### Other Embeds
284264

285-
* `embed/download-tip-paypal.html` - used on post download page.
265+
* `embed/download-tip-paypal.html` - used on download page.
286266
* `embed/paypal.html` - used on funding pages.
287267

288268
These are re-used across page layouts and shouldn't be used in Markdown files:

README.md

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This has the advantage to preview your changes.
3535

3636
sudo apt install python3-requests python3-yaml transmission-cli python3-polib translate-toolkit webp
3737

38-
3. Watch for changes locally:
38+
3. To build and preview changes locally:
3939

4040
./scripts/watch.sh
4141

@@ -45,23 +45,6 @@ This has the advantage to preview your changes.
4545
4. Preview the website on your computer at <http://localhost:4000>. Any changes you make will be live reloaded and include unpublished drafts.
4646

4747

48-
## Building
49-
50-
This website has a few programmatically generated files, such as localized pages
51-
and automatic magnet link generation for torrents. These can be enabled by passing
52-
the parameters to either `build.sh` or `watch.sh`. To obtain the magnet
53-
link automagically, set the `magnet-uri` key to `autogen`.
54-
55-
| Parameter | What it does |
56-
| ------------- | --------------------------------------------------------- |
57-
| --magnet-uri | Fetch torrent files and generate magnet links.
58-
| --locales | Build localized pages.
59-
60-
For example:
61-
62-
./scripts/build.sh --locales --magnet-uri
63-
64-
6548
## Testing
6649

6750
Continuous Integration will perform validation checks to ensure the website
@@ -91,21 +74,27 @@ the best practices.
9174

9275
We use the [polyglot](https://github.com/untra/polyglot) gem to provide i18n support.
9376

94-
As part of the build script, the website will generate the markdown files for other
95-
languages via `scripts/manage-translations.py`. This can be ran manually too:
77+
To add new locales, add the language code in:
78+
79+
* `_i18n/locales.txt`
80+
* `_config.yml` (under `languages:`)
81+
* `_data/lang.yml`
82+
83+
As part of the build process, markdown files for other languages are generated
84+
via `scripts/manage-translations.py`. This can be ran manually too:
9685

9786
| Parameter | Action |
9887
|-----------------------|---------------------------------------------------|
99-
| `--generate` | Creates POT and updates PO files from pages.
100-
| `--build` | Process translated PO files for use with Jekyll.
88+
| `--generate` | Will create POT files and updates PO files from pages.
89+
| `--build` | Will process translated PO files into Markdown files.
10190

10291
When pages change, run `--generate`. Before building the site, run `--build`.
10392

104-
Language lists are to be updated in:
10593

106-
* `_i18n/locales.txt`
107-
* `_config.yml` (under `languages:`)
108-
* `_data/lang.yml`
94+
If you're just testing locally and wish to preview at <http://localhost:4000>, all you need to run:
95+
96+
./scripts/watch.sh --locales
97+
10998

11099

111100
## File Structure

_data/downloads.yml

Lines changed: 35 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,65 @@
1-
2-
# If you're running ./scripts/watch.sh, you'll need to reload after editing this file.
3-
4-
releases:
5-
focal:
6-
name: "20.04.6 LTS"
7-
codename: "Focal Fossa"
8-
mascot: "focal.svg"
9-
wallpaper: "focal.jpg"
10-
lts: true
11-
prerelease: false
12-
release_notes: "/blog/ubuntu-mate-focal-fossa-release-notes/"
13-
end_of_life:
14-
month: Apr
15-
year: 2023
16-
1+
codenames:
172
jammy:
183
name: "22.04.5 LTS"
194
codename: "Jammy Jellyfish"
205
mascot: "jammy.svg"
21-
wallpaper: "focal.jpg"
226
lts: true
23-
prerelease: false
7+
old_lts: true
8+
beta: false
249
release_notes: "/blog/ubuntu-mate-jammy-jellyfish-release-notes/"
2510
end_of_life:
2611
month: Apr
2712
year: 2025
28-
29-
lunar:
30-
name: "23.04"
31-
codename: "Lunar Lobster"
32-
mascot: "lunar.svg"
33-
wallpaper: "focal.jpg"
34-
lts: false
35-
prerelease: false
36-
release_notes: "/blog/ubuntu-mate-lunar-lobster-release-notes/"
37-
end_of_life:
38-
month: Jan
39-
year: 2024
40-
41-
mantic:
42-
name: "23.10"
43-
codename: "Mantic Minotaur"
44-
mascot: "mantic.svg"
45-
wallpaper: "focal.jpg"
46-
lts: false
47-
prerelease: false
48-
release_notes: "/blog/ubuntu-mate-mantic-minotaur-release-notes/"
49-
end_of_life:
50-
month: Jul
51-
year: 2024
13+
releases:
14+
amd64:
15+
url: "https://cdimage.ubuntu.com/ubuntu-mate/releases/22.04/release/ubuntu-mate-22.04.5-desktop-amd64.iso"
16+
sha256sum: "b382a3aebffc916cce71369e0c09719dd819b8b6ab308d4396ac31c1ada867c4"
17+
size: "3.4 GB"
18+
magnet-uri: "magnet:?xt=urn:btih:8fcb95f456700f9938c049ccb2ce60c423e2b6fa&dn=ubuntu-mate-22.04.5-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce"
19+
armhf:
20+
url: "https://releases.ubuntu-mate.org/jammy/armhf/ubuntu-mate-22.04-desktop-armhf+raspi.img.xz"
21+
sha256sum: "7a60d1bf89f89bcfd121788bcfed4514fd4a63da91624c1ed4ab2a62ed78a27a"
22+
size: "1.7 GB"
23+
magnet-uri: "magnet:?xt=urn:btih:4016c541118c5a39b09b778ec04302e1adc32c18&dn=ubuntu-mate-22.04-desktop-armhf%2Braspi.img.xz&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&ws=https%3A%2F%2Fman.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-armhf%2Braspi.img.xz&ws=https%3A%2F%2Fyor.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-armhf%2Braspi.img.xz"
24+
arm64:
25+
url: "https://releases.ubuntu-mate.org/jammy/arm64/ubuntu-mate-22.04-desktop-arm64+raspi.img.xz"
26+
sha256sum: "3b538f8462cdd957acfbab57f5d949faa607c50c3fb8e6e9d1ad13d5cd6c0c02"
27+
size: "1.8 GB"
28+
magnet-uri: "magnet:?xt=urn:btih:15770f5332945b5b7365460b476e4bc8e6a834ec&dn=ubuntu-mate-22.04-desktop-arm64%2Braspi.img.xz&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&ws=https%3A%2F%2Fman.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-arm64%2Braspi.img.xz&ws=https%3A%2F%2Fyor.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-arm64%2Braspi.img.xz"
5229

5330
noble:
5431
name: "24.04.2 LTS"
5532
codename: "Noble Numbat"
5633
mascot: "noble.svg"
57-
wallpaper: "focal.jpg"
5834
lts: true
59-
prerelease: false
35+
old_lts: false
36+
beta: false
6037
release_notes: "/blog/ubuntu-mate-noble-numbat-release-notes/"
6138
end_of_life:
6239
month: Apr
6340
year: 2027
41+
releases:
42+
amd64:
43+
url: "https://cdimage.ubuntu.com/ubuntu-mate/releases/noble/release/ubuntu-mate-24.04.2-desktop-amd64.iso"
44+
sha256sum: "ec1399cf90678c29ee1f80055826b21a3d90f59d50d154e5ea70b1931ce909c9"
45+
size: "4.1 GB"
46+
magnet-uri: "magnet:?xt=urn:btih:d6663939e41a8ba70ea153a34a17f896e084fd58&dn=ubuntu-mate-24.04.2-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce"
6447

6548
oracular:
6649
name: "24.10"
6750
codename: "Oracular Oriole"
6851
mascot: "oracular.svg"
6952
wallpaper: "focal.jpg"
7053
lts: false
71-
prerelease: false
54+
old_lts: false
55+
beta: false
7256
release_notes: "/blog/ubuntu-mate-oracular-oriole-release-notes/"
7357
end_of_life:
7458
month: Jul
7559
year: 2025
76-
77-
# To list new architectures on the download page, add descriptions to download.md
78-
arch:
79-
- amd64
80-
- armhf
81-
- arm64
82-
83-
downloads:
84-
amd64:
85-
- release: jammy
86-
url: "https://cdimage.ubuntu.com/ubuntu-mate/releases/22.04/release/ubuntu-mate-22.04.5-desktop-amd64.iso"
87-
sha256sum: "b382a3aebffc916cce71369e0c09719dd819b8b6ab308d4396ac31c1ada867c4"
88-
size: "3.4 GB"
89-
magnet-uri: "magnet:?xt=urn:btih:8fcb95f456700f9938c049ccb2ce60c423e2b6fa&dn=ubuntu-mate-22.04.5-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce"
90-
91-
- release: noble
92-
url: "https://cdimage.ubuntu.com/ubuntu-mate/releases/noble/release/ubuntu-mate-24.04.2-desktop-amd64.iso"
93-
sha256sum: "ec1399cf90678c29ee1f80055826b21a3d90f59d50d154e5ea70b1931ce909c9"
94-
size: "4.1 GB"
95-
magnet-uri: "magnet:?xt=urn:btih:d6663939e41a8ba70ea153a34a17f896e084fd58&dn=ubuntu-mate-24.04.2-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce"
96-
97-
- release: oracular
98-
url: "https://cdimage.ubuntu.com/ubuntu-mate/releases/24.10/release/ubuntu-mate-24.10-desktop-amd64.iso"
99-
sha256sum: "6139a5f9bd00bac15a50e013b1f80f39098c5c4290b1f052cf88bc27871b9ae7"
100-
size: "3.3 GB"
101-
magnet-uri: "magnet:?xt=urn:btih:bae16ce3d55349d55e41778b61c1890e21bf275b&dn=ubuntu-mate-24.10-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce"
102-
103-
armhf:
104-
- release: jammy
105-
url: "https://releases.ubuntu-mate.org/jammy/armhf/ubuntu-mate-22.04-desktop-armhf+raspi.img.xz"
106-
sha256sum: "7a60d1bf89f89bcfd121788bcfed4514fd4a63da91624c1ed4ab2a62ed78a27a"
107-
size: "1.7 GB"
108-
magnet-uri: "magnet:?xt=urn:btih:4016c541118c5a39b09b778ec04302e1adc32c18&dn=ubuntu-mate-22.04-desktop-armhf%2Braspi.img.xz&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&ws=https%3A%2F%2Fman.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-armhf%2Braspi.img.xz&ws=https%3A%2F%2Fyor.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-armhf%2Braspi.img.xz"
109-
bandwidth_costs: true
110-
111-
arm64:
112-
- release: jammy
113-
url: "https://releases.ubuntu-mate.org/jammy/arm64/ubuntu-mate-22.04-desktop-arm64+raspi.img.xz"
114-
sha256sum: "3b538f8462cdd957acfbab57f5d949faa607c50c3fb8e6e9d1ad13d5cd6c0c02"
115-
size: "1.8 GB"
116-
magnet-uri: "magnet:?xt=urn:btih:15770f5332945b5b7365460b476e4bc8e6a834ec&dn=ubuntu-mate-22.04-desktop-arm64%2Braspi.img.xz&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&ws=https%3A%2F%2Fman.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-arm64%2Braspi.img.xz&ws=https%3A%2F%2Fyor.ubuntu-mate.org%2Fjammy%2Fubuntu-mate-22.04-desktop-arm64%2Braspi.img.xz"
117-
bandwidth_costs: true
60+
releases:
61+
amd64:
62+
url: "https://cdimage.ubuntu.com/ubuntu-mate/releases/24.10/release/ubuntu-mate-24.10-desktop-amd64.iso"
63+
sha256sum: "6139a5f9bd00bac15a50e013b1f80f39098c5c4290b1f052cf88bc27871b9ae7"
64+
size: "3.3 GB"
65+
magnet-uri: "magnet:?xt=urn:btih:bae16ce3d55349d55e41778b61c1890e21bf275b&dn=ubuntu-mate-24.10-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce"

_data/strings.yml

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -33,45 +33,24 @@ funding: "Funding"
3333
#######################################
3434
# Downloads
3535
#######################################
36-
choose_arch: "Choose an architecture"
37-
choose_version: "Choose a release"
38-
choose_download: "Choose a download"
39-
post_download_page_title: "Thank you for downloading [20.04] ([amd64])"
40-
post_download_title: "Thank you for downloading:"
41-
post_download_release: "[Focal] for [amd64] systems"
36+
label_lts: "Latest LTS Release"
37+
about_lts: "Recommended for stability and mission critical systems."
38+
39+
label_old_lts: "Previous LTS Release"
40+
about_old_lts: "Our previous long term release, still supported."
41+
42+
label_interim: "Interim Release"
43+
about_interim: "A short-term release featuring the latest features and applications."
44+
45+
label_beta: "Beta Testing"
46+
about_beta: "This release is not production-ready. It's recommended for testers to help with Ubuntu MATE Quality Assurance, or to provide feedback and file bug reports."
47+
4248
release_notes: "Release Notes"
43-
download_started: "Your download has started"
44-
download_started_help: "Not working? Try clicking the link:"
45-
post_download_go_back: "Choose a different download"
46-
browse_downloads: "Browse Downloads"
47-
show_req: "System Requirements"
48-
download_ports: "Or.... choose a hardware port:"
49-
download_help: "What should I download?"
50-
label_LTS: "Recommended for stability and mission critical systems."
51-
label_nonLTS: "Interim release for users desiring the latest features and applications."
52-
label_prerelease: "Development release for testing and debugging."
53-
prerelease: "(Pre-release)"
54-
file_name: "File Name"
55-
file_size: "File Size"
5649
checksum: "Checksum"
57-
recommended: "Recommended"
58-
prefer_torrent: "**Spare the bytes!** A torrent is recommended to reduce bandwidth costs. It could deliver faster download speeds too!"
59-
label_bittorrent: "Receive the file distributed and verified by multiple computers."
60-
label_magnet: "Open my BitTorrent client."
61-
label_direct: "Via your web browser."
6250
end_of_life: "Supported until"
63-
filename: "Filename"
64-
arch: "Architecture"
65-
server: "Hosted by"
66-
download_links: "Download"
67-
direct: "Direct Download"
68-
bittorrent: "BitTorrent"
69-
magnet: "Magnet Link"
70-
support_bandwidth: "Support bandwidth costs"
71-
prerelease_warning_title: "Bugs might bite!"
72-
prerelease_warning_text: "This release is not production-ready. It's recommended for testers to help with Ubuntu MATE QA, or to provide feedback and file bug reports."
73-
prerelease_warning_button: "Learn how to get involved →"
74-
51+
direct: "Direct"
52+
bittorrent: "Torrent"
53+
browse_downloads: "Browse archive and previous device ports"
7554

7655
#######################################
7756
# Months
@@ -239,7 +218,7 @@ no_translation_url: "Does not support translations"
239218
# FAQs
240219
#######################################
241220
faq: "Project FAQs"
242-
# download_help: <see above>
221+
download_help: "What should I download?"
243222
the_project: "The Project"
244223
verify_downloads_quick: "Verify for Corruption"
245224
verify_downloads_secure: "Verify for Tampering"
@@ -301,7 +280,6 @@ quote_youtube_title: "What the YouTubers are showcasing..."
301280
#######################################
302281
device_ports: "Device Ports"
303282
raspberry_pi: "Raspberry Pi"
304-
learn_more_rpi: "Learn more about our Raspberry Pi release"
305283

306284

307285
#######################################

0 commit comments

Comments
 (0)