From af8da12f045f4debf19af2da71dc4734471b5d5a Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 25 Dec 2021 23:37:58 +0100 Subject: [PATCH] catch exception --- templates/macros/rezept_body.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/macros/rezept_body.html b/templates/macros/rezept_body.html index 8e7f376..462d8cd 100644 --- a/templates/macros/rezept_body.html +++ b/templates/macros/rezept_body.html @@ -7,4 +7,13 @@ {{- '\n ' -}} {{- post.body -}} {{- '\n ' -}} {{- '\n ' -}} +{%- else -%} + {%- if post.title is defined -%} + {{- '\n ' -}}
+ {{- '\n ' -}}
+ {{- '\n ' -}}

{{ post.title -}}

+ {{- '\n ' -}}

Leider gab es ein Fehler beim Rendern von {{ post.title -}}

+ {{- '\n ' -}}
+ {{- '\n ' -}}
+ {%- endif -%} {%- endif -%}