diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2017-05-23 11:27:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-23 11:27:24 +0200 |
| commit | 014e4fc1828e46d92eca612532f95b77cdf3fba6 (patch) | |
| tree | af0e56b1f5e38b01ffc18fd6955967a461b01058 | |
| parent | d955e43cf730aa1b095259ff18d750e2aa211b26 (diff) | |
| download | wiki-014e4fc1828e46d92eca612532f95b77cdf3fba6.tar.gz wiki-014e4fc1828e46d92eca612532f95b77cdf3fba6.tar.bz2 wiki-014e4fc1828e46d92eca612532f95b77cdf3fba6.zip | |
Add markdown extension automatically
| -rw-r--r-- | 404.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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> |
