From 878872799ee4b94788405948e3885cd70d8d1b8b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 2 Feb 2021 20:43:10 +0000 Subject: [PATCH] Fix crash on wtfpl page --- app/flatpages/help/wtfpl.md | 4 +--- app/templates/flatpage.html | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/flatpages/help/wtfpl.md b/app/flatpages/help/wtfpl.md index 918b52b..31be511 100644 --- a/app/flatpages/help/wtfpl.md +++ b/app/flatpages/help/wtfpl.md @@ -1,5 +1,5 @@ title: WTFPL is a terrible license -no_h1: true +toc: False
@@ -20,8 +20,6 @@ no_h1: true
-# WTFPL is a terrible license - The use of WTFPL as a license is discouraged for multiple reasons. * **No Warranty disclaimer:** This could open you up to being sued.[1] diff --git a/app/templates/flatpage.html b/app/templates/flatpage.html index d4ba0e0..1f2951a 100644 --- a/app/templates/flatpage.html +++ b/app/templates/flatpage.html @@ -11,7 +11,7 @@
- {% if not page["no_h1"] %}

{{ page['title'] }}

{% endif %} +

{{ page['title'] }}

{{ html | safe }}
@@ -38,7 +38,7 @@ {% else %}
- {% if not page["no_h1"] %}

{{ page['title'] }}

{% endif %} +

{{ page['title'] }}

{{ html | safe }}