404 page replacement - where am I going wrong #7888
-
I'm 100% certain this is a PEBKAC error, however I'm also fairly certain I've followed the existing documentation appropriately so I'm looking for a clearer headed person to ride in and validate my imposter syndrome. I've referred to this discussion and the links within, and from what I can see my own setup is the same (apart from the declaration of static_templates in my mkdocs.yml file - maybe this is it?) Appropriate section of mkdocs.yml site_name: Fantasy Football - TEST SITE
theme:
name: material
logo: assets/american-football.png
favicon: assets/american-football.png
palette:
scheme: slate
custom-dir: overrides 404 page definition: {% extends "main.html" %}
{% block content %}
<h1>
Oops - you shouldn't be here
</h1>
<img src="[blob container]/404.jpg", alt="">
{% endblock %} Folder structure:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @antnorwe, |
Beta Was this translation helpful? Give feedback.
Hello @antnorwe,
I see there is
custom-dir: overrides
with a-
instead of_
. A good way to check, if it overrides at all, would be also to just make themain.html
file aHello World
page, without the extends base.html part and see if it is applied 👌