Skip to content

Commit

Permalink
Merge pull request #90 from carmenbianca/fix-redirect
Browse files Browse the repository at this point in the history
Fix redirect to use English-language version
  • Loading branch information
carmenbianca authored Aug 23, 2024
2 parents 705c9d9 + a19c16f commit e4af907
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ refLinksErrorLevel = "warning"
header_link_color="#777"
header_link_hover_color="rgb(51, 51, 51)"

current_spec="spec-3.2"

[params.social]
Github = "search?q=topic%3Areuse+org%3Afsfe&type=Repositories"
Git = "https://git.fsfe.org/reuse"
Expand Down
2 changes: 0 additions & 2 deletions site/content/en/spec-3.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

title: "REUSE Specification – Version 3.2"
subtitle: "2024-07-03"
aliases:
- "/spec"
---

This specification defines a standardised method for declaring copyright and
Expand Down
7 changes: 7 additions & 0 deletions site/content/en/spec.md
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"
---
14 changes: 14 additions & 0 deletions site/layouts/_default/redirect_current_spec.html
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>

0 comments on commit e4af907

Please sign in to comment.