summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-05-23 11:27:24 +0200
committerGitHub <noreply@github.com>2017-05-23 11:27:24 +0200
commit014e4fc1828e46d92eca612532f95b77cdf3fba6 (patch)
treeaf0e56b1f5e38b01ffc18fd6955967a461b01058
parentd955e43cf730aa1b095259ff18d750e2aa211b26 (diff)
downloadwiki-014e4fc1828e46d92eca612532f95b77cdf3fba6.tar.gz
wiki-014e4fc1828e46d92eca612532f95b77cdf3fba6.tar.bz2
wiki-014e4fc1828e46d92eca612532f95b77cdf3fba6.zip
Add markdown extension automatically
-rw-r--r--404.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/404.md b/404.md
index abd414a..d395b73 100644
--- a/404.md
+++ b/404.md
@@ -6,6 +6,9 @@ permalink: /404.html
<!-- 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}}?filename={{ site.wiki_folder | default: 'wiki' }}/'+filename;
window.location=url;
</script>