diff options
| author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2021-07-09 06:33:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-09 06:33:10 +0200 |
| commit | a12f8d77e0be201addc4cd0536480cc68fdc12b8 (patch) | |
| tree | f5866a546aafe91138eb12db71138f6bb9047774 | |
| parent | 7068d0df5518378c05e09e1146e18657a34cc473 (diff) | |
| download | wiki-a12f8d77e0be201addc4cd0536480cc68fdc12b8.tar.gz wiki-a12f8d77e0be201addc4cd0536480cc68fdc12b8.tar.bz2 wiki-a12f8d77e0be201addc4cd0536480cc68fdc12b8.zip | |
chore: Make a better 404 (#529)
| -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, 17 insertions, 22 deletions
diff --git a/_layouts/git-wiki-404.html b/_layouts/git-wiki-404.html deleted file mode 100644 index 6a7b4ec..0000000 --- a/_layouts/git-wiki-404.html +++ /dev/null @@ -1,15 +0,0 @@ ---- -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 deleted file mode 100644 index 7f4c12b..0000000 --- a/assets/404.html +++ /dev/null @@ -1,7 +0,0 @@ ---- -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 new file mode 100644 index 0000000..809dc7e --- /dev/null +++ b/assets/404.md @@ -0,0 +1,17 @@ +--- +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) +| --- | --- | |
