aboutsummaryrefslogtreecommitdiff
path: root/templates/404.html
diff options
context:
space:
mode:
authorJieiku2022-05-30 23:20:43 -0700
committerJieiku2022-05-30 23:20:43 -0700
commit30ea88e8d8c201c3fcce409a54712de820610dff (patch)
treeccf9c2ea31816153f59c725d85ba8eaa54e3ef21 /templates/404.html
parentd8cd3b9988f9021ea1b285db3231048acb7b74f4 (diff)
downloadabridge-30ea88e8d8c201c3fcce409a54712de820610dff.tar.gz
abridge-30ea88e8d8c201c3fcce409a54712de820610dff.tar.bz2
abridge-30ea88e8d8c201c3fcce409a54712de820610dff.zip
Add Favicons, Add Head Macro, 404 noindex, config.toml Resources, Whitespace Cleanup
Diffstat (limited to 'templates/404.html')
-rw-r--r--templates/404.html39
1 files changed, 20 insertions, 19 deletions
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 %}
- <title>Sorry! Page not found.</title>
-{% endblock title %}
-{% block current_url %}
- {% if config.extra.seo | default(value=true) %}
- <meta property="og:url" content="{{ get_url(path='/') }}">
- <meta name="twitter:url" content="{{ get_url(path='/') }}">
- {% 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 %}
- <div>
- <h1>404 Error</h1>
- <h2>Sorry</h2>
- <p>The requested page does not exist or has been moved to another address.</p>
- <p>Please go back to <a href="{{ get_url(path="/", trailing_slash=true) }}">home</a>.</p>
- </div>
-{% endblock content %}
+ {%- set description = config.description %}
+
+ {{- macros_head::seo(title=title, title_addition=title_addition, description=description, is_404=true) }}
+{%- endblock seo %}
+
+{%- block content %}
+ <div>
+ <h1>Page not found :(</h1>
+ <p>The page you are looking for doesn't exist or has been moved.</p>
+ <p>Try using the search, or <a href="{{ get_url(path="/", trailing_slash=true) }}">go home</a>.</p>
+ </div>
+{%- endblock content %}