lab
lab copied to clipboard
change 404 page
Change the default page to correct site.
@bytekeks FYI 😁
@nichtmax is there a way to browse the build artifacts that are copied to netlify? I want to check if the 404.rst
file is created properly. It does locally.
Another approach would be to put the page content of the 404 page into the conf.py:
notfound_context = {
'title': 'Page Not Found',
'body': '''
<h1>Page Not Found</h1>
<p>Sorry, the page you're looking for was not found.</p>
<p>Please select a page from the side menu or feel free to create an issue on <a href="https://github.com/Uberspace/lab/issues">github.com</a>.</p>
''',
}
This would bloat the conf.py file somehow ...
check how it was done in the manual https://github.com/Uberspace/manual/pull/512
maybe choose the design from there as well