Skip to content

Commit

Permalink
Add a specific include for redirecting to the wiki
Browse files Browse the repository at this point in the history
This will add a notice that users will be redirected to an external
site; while the Hacks Guide Wiki is technically still us, it's still
good practice and less of a shock to users when it goes to somewhere
that looks and feels totally different.

The page will automatically redirect after 5 seconds.
  • Loading branch information
lifehackerhansol committed Apr 1, 2024
1 parent b28118f commit df15bb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions _pages/en_US/include/redirect-wiki.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<meta http-equiv="refresh" content="5; URL={{ include.redirect_to }}">
<link rel="canonical" href="{{ include.redirect_to }}">

You are being redirected to the Hacks Guide Wiki.

If the page doesn't refresh, click [here]({{ include.redirect_to }}).
2 changes: 1 addition & 1 deletion _pages/en_US/riitag.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
title: Redirecting...
---

{% include redirect.html redirect_to="https://wiki.hacks.guide/wiki/RiiTag" %}
{% include_relative include/redirect-wiki.md redirect_to="https://wiki.hacks.guide/wiki/RiiTag" %}
2 changes: 1 addition & 1 deletion _pages/en_US/rssmii.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
title: Redirecting...
---

{% include redirect.html redirect_to="https://wiki.hacks.guide/wiki/Wii:RSSMii" %}
{% include_relative include/redirect-wiki.md redirect_to="https://wiki.hacks.guide/wiki/RiiTag" %}
2 changes: 2 additions & 0 deletions crowdin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ files:
translation: /_data/navigation/%locale_with_underscore%.yml
- source: /_pages/en_US/*.md
translation: /_pages/%locale_with_underscore%/%original_file_name%
- source: /_pages/en_US/include/*.md
translation: /_pages/%locale_with_underscore%/include/%original_file_name%

0 comments on commit df15bb4

Please sign in to comment.