Closed rorosaurus closed 7 years ago
Hi @rorosaurus,
PouchDB is used in the browser, we still need to store the posts in a backend ie the _posts directory. I will look if it is possible to have a 404 page without a jekyll context
@anthonny seems the answer is yes.
I asked:
Is it possible to have a 404 page for a Github pages site that explicitly disabled Jekyll with the ".nojekyll" file?
I got the following reply:
Hey Rory, Yes you can, just call the file 404.html. The major difference is that you don't put any yaml front matter in. Regards, Daniel @danayel GitHub Support
So it is possible. Might be nice to support theme's 404 pages in the future, but it's possible to create your own today if you're willing to create the .html file directly.
@rorosaurus so for having be sooo long to answer. Thank you for the informations about the 404.
Closing this off and will get this feature added to pages support in #438
Navigation and static page are here with the 0.9.0 ;) See https://hubpress.github.io/2018/05/09/Update-Whats-New-in-Version-090.html
To make a 404.html, you just have to create a page with the title:
= 404
:hp-type: page
or
= My awesome 404 page
:hp-type: page
:hp-alt-title: 404
https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/
This doesn't work, due to the .nojekyll file I assume. Perhaps we can get rid of the _posts directory and re-enable jekyll if we do switch to PouchDB in 0.5.0? Or is there a way to do with without Jekyll on Github pages?