Verified Commit 689f4e4e authored by Allen Mak's avatar Allen Mak

Update: Add new redirects

Redirections for the consolidated recurring anime thread series.
Also updated the redirect template and build commands.
parent 0e7fbb37
......@@ -53,6 +53,12 @@ echo [build.sh] Generating redirects…
<src/redirect/redirect.txt xargs -I % cp src/redirect/redirect.html %
#fix redirects to slugs instead of wiki index
while read r; do
sed -i "s|gitlab.io\/|gitlab.io\/${r%.html}\/|g" $r
sed -i "0,\|gitlab.io\/|s||gitlab.io\/${r%.html}\/|" $r
sed -i "s|gitlab.io\/public\/|gitlab.io\/|g" $r
done <src/redirect/redirect.txt
#create redirects for conslidated anime articles
mkdir -p public/anime/current public/anime/weekly
<src/redirect/redirect-anime.txt xargs -I % cp src/redirect/redirect.html %
while read anime; do
sed -i "0,\|gitlab.io\/|s||gitlab.io\/anime\/\#recurring-topics|" $anime
done <src/redirect/redirect-anime.txt
public/anime/current.html
public/anime/current/index.html
public/anime/weekly.html
public/anime/weekly/index.html
......@@ -24,22 +24,24 @@
<nav>
<ul>
<li><a href="/">start</a></li>
<li><a href="/tildes/introduction">a general introduction</a></li>
<li><a href="/chats">chats</a></li>
<li><a href="/about">about</a></li><br/>
<li><a href="/anime">~anime</a></li>
<li><a href="/books">~books</a></li>
<li><a href="/comp">~comp</a></li>
<li><a href="/creative">~creative</a></li>
<li><a href="/games">~games</a></li>
<li><a href="/enviro">~enviro</a></li>
<li><a href="/games">~games</a></li><br/>
<li><a href="/hobbies">~hobbies</a></li>
<li><a href="/music">~music</a></li>
<li><a href="/news">~news</a></li>
<li><a href="/science">~science</a></li>
<li><a href="/tech">~tech</a></li>
<li><a href="/tildes">~tildes</a></li>
</ul>
</nav>
&copy; 2019 The Unofficial Tildes Wiki Contributors, released under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a>.
<a href="https://gitlab.com/unofficial-tildes-wiki/unofficial-tildes-wiki.gitlab.io/">Page source here.</a>
&copy; 2019 The UTW Contributors, released under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a>.
<a href="https://gitlab.com/unofficial-tildes-wiki/unofficial-tildes-wiki.gitlab.io/">This page is open-source</a>.
<br/>
The Unofficial Tildes Wiki is not affiliated with or endorsed by tildes.net or Spectria.
</footer>
......
public/about.html
public/anime.html
public/anime/current.html
public/anime/weekly.html
public/books.html
public/books/reading.html
public/changelog.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment