layout permalink default /404.html <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>