webseite/templates/macros/rezept_body.html
L3D fd742c7049 redesign website (!1)
Co-authored-by: L3D <l3d@see-base.de>
Reviewed-on: https://backwesen.de/c3woc/webseite/pulls/1
2022-05-18 00:35:37 +02:00

19 lines
680 B
HTML

{#-
Render post.body
-#}
{%- if post.body is defined and post.body != "" -%}
{{- '\n ' -}} <div class="content__box">
{{- '\n ' -}} <div class="content__inner_box">
{{- '\n ' -}} {{- post.body -}}
{{- '\n ' -}} </div>
{{- '\n ' -}} </div>
{%- else -%}
{%- if post.title is defined -%}
{{- '\n ' -}} <div class="content__box">
{{- '\n ' -}} <div class="content__inner_box">
{{- '\n ' -}} <h1>{{ post.title -}}</h1>
{{- '\n ' -}} <p>Leider gab es ein Fehler beim Rendern von {{ post.title -}}</p>
{{- '\n ' -}} </div>
{{- '\n ' -}} </div>
{%- endif -%}
{%- endif -%}