mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Replace 404.md with a 404.html template
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
+++
|
||||
title = "Page not found"
|
||||
path = "404.html"
|
||||
template = "plain.html"
|
||||
+++
|
||||
|
||||
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
|
||||
|
||||
[Head back home](/) to try finding it again.
|
||||
|
||||
If you followed a link on this site, please [report it]!
|
||||
|
||||
[report it]: https://github.com/phil-opp/blog_os/issues
|
||||
12
blog/templates/404.html
Normal file
12
blog/templates/404.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "second-edition/base.html" %}
|
||||
|
||||
{% block title %}Page not found | {{ config.title }}{% endblock title %}
|
||||
|
||||
{% block main %}
|
||||
<h1>Page not found</h1>
|
||||
<p>Sorry, this address is not valid.</p>
|
||||
|
||||
<p><a href="{{ config.base_url }}">Go to the index page</a>.</p>
|
||||
|
||||
<p>If you followed a link on this site, please <a href="https://github.com/phil-opp/blog_os/issues">report it</a>!</p>
|
||||
{% endblock main %}
|
||||
@@ -9,7 +9,9 @@
|
||||
<meta name="description" content="{{ config.description }}">
|
||||
<meta name="author" content="{{ config.extra.author.name }}">
|
||||
|
||||
<link rel="canonical" href="{{ current_url | safe }}" />
|
||||
{% if current_url %}
|
||||
<link rel="canonical" href="{{ current_url | safe }}" />
|
||||
{% endif %}
|
||||
<link href="/css/poole.css" rel="stylesheet">
|
||||
<link href="/css/main.css" rel="stylesheet">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user