diff options
| -rw-r--r-- | _layouts/git-wiki-404.html | 15 | ||||
| -rw-r--r-- | assets/404.html | 7 | ||||
| -rw-r--r-- | assets/404.md | 17 |
3 files changed, 22 insertions, 17 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 diff --git a/assets/404.html b/assets/404.html new file mode 100644 index 0000000..7f4c12b --- /dev/null +++ b/assets/404.html @@ -0,0 +1,7 @@ +--- +layout: git-wiki-404 +permalink: /404.html +is_wiki_page: false +--- + +<!--- this file is needed for automatic creation of non existent pages ---> diff --git a/assets/404.md b/assets/404.md deleted file mode 100644 index 809dc7e..0000000 --- a/assets/404.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -layout: default -permalink: /404.html ---- - -# Four Oh Four - -## Page not found... - -How did we end up here? - -Perhaps you crossed paths with Mal'Ganis or Yogg-Saron? - -We have sent a saftey murloc to guide you back to safety! - -| [Mmmrrgmgrrrgmmll!](home.md) | [Create a new page](https://github.com/azerothcore/wiki/new/master?filename=docs/.md) -| --- | --- | |
