How to get a custom 404 page rendered within the regular theme? #5018
-
Hi everybody, first of all I want to say a huge thank you to the team for giving us the material theme - I recently just set up a little GH page with it and the look, feel and functions are just great! I'm really stoked about it and once I 'll get my new little page done I'm going to use the same for my other two documentation pages. Unfortunately I do have a question though and please forgive me if this might be a stupid one, but I didn't find a solution yet and just can't figure out what I'm doing wrong, so I hope someone here can help me out..
The problem for me now is that it doesn't render in the theme (like a regular page) - it's an entire 'new' page which therefore just looks completely different. I also tried to add the html code as a Just in case it's an important information: I'm not using a local installation and then pushing it to GH, instead I make everything online at my repo and get the page built and deployed using GH actions. This is my repo and the page I'm talking about: I hope you guys can help me out - thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can extend the theme and override selected blocks of the template. See our Lines 23 to 28 in 48e8b2b |
Beta Was this translation helpful? Give feedback.
You can extend the theme and override selected blocks of the template. See our
404.html
for reference:mkdocs-material/src/404.html
Lines 23 to 28 in 48e8b2b