diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..b081fbc --- /dev/null +++ b/templates/404.html @@ -0,0 +1,16 @@ +{% extends "index.html" %} + +{% block title %} +404 +{% endblock title %} + +{% block header_menu %} +{{ menu_macros::menu_for(config=config, current_item="") }} +{% endblock header_menu %} + +{% block content %} +
+

{% block heading %}Lost?{% endblock heading %}

+

{% block message %}This page does not exist.{% endblock message %}

+
+{% endblock content %} diff --git a/templates/index.html b/templates/index.html index a5fd72e..5359356 100644 --- a/templates/index.html +++ b/templates/index.html @@ -47,7 +47,9 @@ + {% block header_menu %} {{ menu_macros::menu(config=config, current_path=current_path) }} + {% endblock header_menu %} {% endblock header %} diff --git a/templates/macros/menu.html b/templates/macros/menu.html index ca7fc67..58314e3 100644 --- a/templates/macros/menu.html +++ b/templates/macros/menu.html @@ -2,8 +2,6 @@ {%- if config.extra.menu_items %} {%- set menu_items = config.extra.menu_items -%} -