layout permalink default /404.html <script type="text/javascript"> var filename = window.location.pathname.split('/').pop(); var url = '{{ site.github.repository_url }}/new/{{site.git_branch}}?filename=wiki/'+filename; window.location=url; </script>