Skip to content

Commit c905708

Browse files
Fix 403 page #343: restore layout and navigation
Signed-off-by: yaswanthkumarch <yaswanthkumarch2001@gmail.com>
1 parent bca24c4 commit c905708

File tree

3 files changed

+15
-26
lines changed

3 files changed

+15
-26
lines changed

site/content/assets/404

Lines changed: 0 additions & 24 deletions
This file was deleted.

site/pelicanconf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
EXTRA_PATH_METADATA = {
1414
"assets/robots.txt": {"path": "robots.txt"},
1515
"assets/favicon.ico": {"path": "favicon.ico"},
16-
"assets/404": {"path": "404.html"},
16+
# "assets/404": {"path": "404.html"},
1717
"assets/google7933de1bd04e097b": {"path": "google7933de1bd04e097b.html"},
1818
"assets/google95e577d28834e13d": {"path": "google95e577d28834e13d.html"},
1919
}
@@ -30,7 +30,8 @@
3030
TEMPLATE_PAGES = {
3131
"pages/community.html": "community.html",
3232
"pages/docs.html": "docs.html",
33-
"pages/training.html": "training.html"}
33+
"pages/training.html": "training.html",
34+
"templates/404.html": "404.html"}
3435
THEME = "theme"
3536
TIMEZONE = "Europe/London"
3637

site/theme/templates/404.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "default.html" %}
2+
3+
{% block content %}
4+
<div class="container">
5+
<h1>404</h1>
6+
<p><strong>Page not found :(</strong></p>
7+
<p>The requested page could not be found.</p>
8+
9+
<a href="{{ SITEURL }}/" class="button">Home</a>
10+
<a href="{{ SITEURL }}/pages/docs.html" class="button">Docs</a>
11+
</div>
12+
{% endblock %}

0 commit comments

Comments
 (0)