From 918f9fb294408157263f71dd56c404d2f307fd72 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Sat, 24 Feb 2024 11:34:35 +0100 Subject: [PATCH] Set edit content when document doesn't exist --- templates/main.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/main.html b/templates/main.html index cff0fe2..a51016e 100644 --- a/templates/main.html +++ b/templates/main.html @@ -35,7 +35,11 @@ {% endif %} {% else %}
- + {% set edit_content = content %} + {% if content is none %} + {% set edit_content = '# Title\n\nContent' %} + {% endif %} +