From 16f9811f924b04276bb581a3dfab1016e68dbb54 Mon Sep 17 00:00:00 2001 From: Bobby Date: Tue, 31 Jan 2023 04:29:03 -0500 Subject: 404 message based on `context.similar_posts` presence --- templates/404.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/404.html b/templates/404.html index ff78fd06..455f1659 100644 --- a/templates/404.html +++ b/templates/404.html @@ -6,7 +6,11 @@
{% if context.mode == 'article' %} {% load random_numbers %} + {% if context.similar_posts %} + {% else %} + + {% endif %}

Hey! Skippy here! I am the 404 Assistant Bot for this site. Looks like you are trying to search an article, but I couldn't find the page. {% if context.similar_posts %}Maybe you are looking for one of these?{% endif %}