Skip to content

Commit 24895cf

Browse files
committed
Adding custom 404
1 parent 0a254d1 commit 24895cf

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ theme:
1414
palette:
1515
primary: custom
1616
accent: custom
17+
static_teplates:
18+
- 404.html
1719
extra_css:
1820
- assets/styles.css
1921
plugins:

overrides/404.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
% block content %}
3+
<h1>404 – Resource not found</h1>
4+
<p>This page might have been moved or renamed.</p>
5+
6+
<ul>
7+
<li><a href="{{ base_url }}/">Home</a></li>
8+
<li><a href="{{ base_url }}/search/">Search</a></li>
9+
</ul>
10+
11+
<p>If this is part of a standard reference, try navigating via the Table of Contents.</p>
12+
{% endblock %}

0 commit comments

Comments
 (0)