Skip to content

Commit 9b4607b

Browse files
authored
Add custom 404 page template to display 404.md content
1 parent be45e11 commit 9b4607b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ repo_name: explorills/docs
77

88
theme:
99
name: material
10+
custom_dir: overrides
1011
logo: assets/images/logo.png
1112
favicon: assets/images/logo.png
1213
palette:

overrides/404.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
<div class="md-content" data-md-component="content">
5+
<article class="md-content__inner md-typeset">
6+
{{ page.content }}
7+
</article>
8+
</div>
9+
{% endblock %}

0 commit comments

Comments
 (0)