summaryrefslogtreecommitdiff
path: root/_layouts/git-wiki-404.html
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2021-07-09 06:37:10 +0200
committerGitHub <noreply@github.com>2021-07-09 06:37:10 +0200
commit44b35393af6c822d3f92a03ab8a129edea465af5 (patch)
treeab7440d978051db51c76db0b982dda19b9c485d7 /_layouts/git-wiki-404.html
parenta12f8d77e0be201addc4cd0536480cc68fdc12b8 (diff)
downloadwiki-44b35393af6c822d3f92a03ab8a129edea465af5.tar.gz
wiki-44b35393af6c822d3f92a03ab8a129edea465af5.tar.bz2
wiki-44b35393af6c822d3f92a03ab8a129edea465af5.zip
Revert "chore: Make a better 404 (#529)" (#590)
This reverts commit a12f8d77e0be201addc4cd0536480cc68fdc12b8.
Diffstat (limited to '_layouts/git-wiki-404.html')
-rw-r--r--_layouts/git-wiki-404.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/_layouts/git-wiki-404.html b/_layouts/git-wiki-404.html
new file mode 100644
index 0000000..6a7b4ec
--- /dev/null
+++ b/_layouts/git-wiki-404.html
@@ -0,0 +1,15 @@
+---
+title: Not Found
+permalink: /404.html
+is_wiki_page: false
+---
+
+<!-- redirect to page creator if not exists -->
+<script type="text/javascript">
+ var filename = window.location.pathname.split('/').pop();
+ if (!filename.endsWith(".md"))
+ filename+=".md";
+
+ var url = '{{ site.github.repository_url }}/new/{{site.git_branch | escape}}?filename={{ site.wiki_folder | default: 'wiki' }}/'+filename;
+ window.location=url;
+</script> \ No newline at end of file