-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix redirect to use English-language version
The problem: Sometimes, when Hugo generated the website, the `/spec/` alias would point to the Ukrainian translation of the latest specification. Exactly how or why this happens is unclear to me, but I suspect it is because the Ukrainian Markdown file would also contain the `aliases: ["/spec"]` frontmatter, and the Hugo compiler would somehow toss a coin on which aliases frontmatter is authoritative. Here, we get rid of the frontmatter method of doing aliases, and instead use a 'layout' to effectively do the same thing. Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
- Loading branch information
1 parent
705c9d9
commit a19c16f
Showing
4 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. | ||
# SPDX-License-Identifier: MIT | ||
|
||
title: "REUSE Specification" | ||
layout: "redirect_current_spec" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org> | ||
--> | ||
|
||
<html lang="en"> | ||
<head> | ||
<title>REUSE Specification</title> | ||
<link rel="canonical" href="/{{ .Site.Params.current_spec }}/"> | ||
<meta name="robots" content="noindex"> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="refresh" content="0; url=/{{ .Site.Params.current_spec }}/"> | ||
</head> | ||
</html> |