diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-07 08:41:59 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-07 08:41:59 +0100 |
| commit | 843821d9f5108c37444f9dc2864231b0804e59ed (patch) | |
| tree | 32afa9a0ee3a82a162257d1ebd21ce2d456d4fb9 /_layouts | |
| parent | 7341eb7c340d8291b86268281db274e52cc3cf1b (diff) | |
| download | wiki-843821d9f5108c37444f9dc2864231b0804e59ed.tar.gz wiki-843821d9f5108c37444f9dc2864231b0804e59ed.tar.bz2 wiki-843821d9f5108c37444f9dc2864231b0804e59ed.zip | |
404 as layout
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/git-wiki-404.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_layouts/git-wiki-404.html b/_layouts/git-wiki-404.html new file mode 100644 index 0000000..1b463ec --- /dev/null +++ b/_layouts/git-wiki-404.html @@ -0,0 +1,16 @@ +--- +title: Not Found +layout: git-wiki-404 +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 |
