Skip to content

Commit

Permalink
Add /download/4.x redirects for the current download page
Browse files Browse the repository at this point in the history
This also adjusts the format for redirects to make sure
pages are always generated as `/index.html`.
This happens when the redirect link ends with a slash, no
explicit declaration needed. So I adjusted existing rules
to use that as well.
  • Loading branch information
YuriSizov committed Sep 20, 2023
1 parent 08c13ae commit 20e9ac8
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ collections:
output: true
download_3:
output: true
permalink: /download/3.x/:name/index.html
permalink: /download/3.x/:name/

# Build collection items with a future date.
future: true
Expand Down
3 changes: 3 additions & 0 deletions collections/_download/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ downloads:
ignore_export: true
ignore_mono: true

redirect_from:
- /download/4.x/android/

content_note: |
<p>
<strong>Note:</strong> C# support is not available in the Android editor.
Expand Down
3 changes: 3 additions & 0 deletions collections/_download/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ downloads:
- platform: "linux.32"
mono: true

redirect_from:
- /download/4.x/linux/

content_instructions: |
<ul>
<li>Extract and run. Godot is self-contained and does not require installation.</li>
Expand Down
3 changes: 2 additions & 1 deletion collections/_download/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ downloads:
featured_flavor: .NET

redirect_from:
- /download/osx
- /download/4.x/macos/
- /download/osx/

content_instructions: |
<ul>
Expand Down
3 changes: 3 additions & 0 deletions collections/_download/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ downloads:
- platform: "windows.32"
mono: true

redirect_from:
- /download/4.x/windows/

content_note: |
<p>
<strong>Note:</strong> The 32-bit .NET binaries do not run on 64-bit Windows systems at the time being. Make sure to export 64-bit .NET binaries for your 64-bit target platforms.
Expand Down
2 changes: 1 addition & 1 deletion collections/_download_3/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ downloads:
mono: true

redirect_from:
- /download/server
- /download/server/

content_instructions: |
<ul>
Expand Down
9 changes: 5 additions & 4 deletions pages/blog/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
enabled: true
collection: article
redirect_from:
- /devblog/index.html
- /news/index.html
- /news/default/1/index.html
- /news/default/2/index.html
- /devblog/
- /news/
- /news/default/
- /news/default/1/
- /news/default/2/
---
2 changes: 1 addition & 1 deletion pages/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
header_text: "Contact us"
current_tab: "contact"
redirect_from:
- /more/index.html
- /more/
---

<div class="container-text">
Expand Down
3 changes: 3 additions & 0 deletions pages/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
title: "Download - Godot Engine"
description: "Download the latest stable version of the Godot Engine for Linux, macOS, Windows, or Android"
layout: default

redirect_from:
- /download/4.x/
---

<div style="padding: 16px 32px">
Expand Down

0 comments on commit 20e9ac8

Please sign in to comment.