From 30ea88e8d8c201c3fcce409a54712de820610dff Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 30 May 2022 23:20:43 -0700 Subject: Add Favicons, Add Head Macro, 404 noindex, config.toml Resources, Whitespace Cleanup --- templates/404.html | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'templates/404.html') diff --git a/templates/404.html b/templates/404.html index 3b02be6..401d657 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,23 +1,24 @@ {% extends "base.html" %} -{# Title #} -{% block title %} - Sorry! Page not found. -{% endblock title %} -{% block current_url %} - {% if config.extra.seo | default(value=true) %} - - - {% endif %} -{% endblock current_url %} +{%- block seo %} + {{ super() }} + {%- set title = "404 Page not found" %} -{# Page heading #} + {%- if config.title %} + {%- set title_addition = title_separator ~ config.title %} + {%- else %} + {%- set title_addition = "" %} + {%- endif %} -{% block content %} -
-

404 Error

-

Sorry

-

The requested page does not exist or has been moved to another address.

-

Please go back to home.

-
-{% endblock content %} + {%- set description = config.description %} + + {{- macros_head::seo(title=title, title_addition=title_addition, description=description, is_404=true) }} +{%- endblock seo %} + +{%- block content %} +
+

Page not found :(

+

The page you are looking for doesn't exist or has been moved.

+

Try using the search, or go home.

+
+{%- endblock content %} -- cgit v1.3.1