webseite/templates/macros/rezept_body.html

20 lines
680 B
HTML
Raw Normal View History

2021-08-08 23:35:54 +02:00
{#-
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>
2021-12-25 23:37:58 +01:00
{%- 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 -%}
2021-08-08 23:35:54 +02:00
{%- endif -%}