commit 61245173829f3972fb4b862ee2e15ae3e8d5aae5
parent 1bfc7f13d5c1876f4b16086255833cdb54e190ff
Author: FIGBERT <figbert@figbert.com>
Date: Fri, 28 Aug 2020 16:24:48 -0700
:hammer: Allow user to configure 404 text and image
Diffstat:
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/config.toml b/config.toml
@@ -14,5 +14,4 @@ nav = [
{ name = "POSTS", path = "/posts/" }
]
icon = "/icon.png"
-404 = "/404.svg"
diff --git a/templates/404.html b/templates/404.html
@@ -2,9 +2,9 @@
{% block content %}
<div class="error">
- <img src="{{ config.extra.404 }}" alt="404 Page Not Found"/>
+ <img src="{% if config.extra.404_message %}{{ config.extra.404_image }}{% else %}/404.svg{% endif %}" alt="404 Page Not Found"/>
<strong>404</strong>
- <p>Page Not Found</p>
+ <p>{% if config.extra.404_message %}{{ config.extra.404_message }}{% else %}Page Not Found{% endif %}</p>
</div>
{% endblock content %}
diff --git a/theme.toml b/theme.toml
@@ -11,7 +11,6 @@ nav = [
{ name = "POSTS", path = "/posts/" }
]
icon = "/icon.png"
-404 = "/404.svg"
[author]
name = "FIGBERT"