Add GCW link to archived wiki pages, for the live version of said archived article.

This commit is contained in:
Adrian Kuschelyagi Malacoda 2020-09-20 05:28:37 -05:00
parent 7157757d43
commit a9adf51453
3 changed files with 7 additions and 4 deletions

View File

@ -126,6 +126,7 @@ class ArchiveGenerator():
renderer.render_template_to_file("page", page_out, {
"title": " - {}".format(page.title),
"pagename": page.title,
"page": page,
"base": base,
"text": rendered
@ -143,6 +144,7 @@ class ArchiveGenerator():
try:
renderer.render_template_to_file("category", category_out, {
"title": " - {}".format(category),
"pagename": "Category:{}".format(category),
"category": category,
"pages": pages
})

View File

@ -1,6 +1,6 @@
{{>header}}
{{>wiki_notice}}
<h2>{{title}}</h2>
<h2>{{pagename}}</h2>
<ul>
{{#pages}}
<li><a href="{{url}}">{{title}}</a></li>

View File

@ -1,5 +1,6 @@
<div class="notice">
<p>Glitch City Laboratories closed on 1 September 2020 (<a href="{{base}}../forums/board-2/thread-9114/page-0.html">announcement</a>). This is an <b>archived</b> copy of an article from Glitch City Laboratories wiki.</p>
<p><b>A live version of this article is available at the <a href="https://glitchcity.wiki/">Glitch City Wiki</a> <a href="https://glitchcity.wiki/{{pagename}}">here</a>.</b></p>
<p>You can join <a href="https://discord.com/invite/EA7jxJ6">Glitch City Research Institute</a> to ask questions or discuss current developments.</p>
<p>You may also download the archive of the wiki in <a href="{{base}}../wiki.tar.gz">.tar.gz</a> or <a href="{{base}}../wiki.xml.gz">.xml.gz</a> formats.</p>
</div>