{% set full = full is defined and full %}
{% if post.isQuick %}
{% set image = null %} {% if post.quickImage %} {% set image = post.quickImage %} {% elseif post.image %} {% set image = asset(post.image) %} {% endif %} {% set url = post.quickUrl %} {% set title = post.title %} {% set content = post.content|murph_url %} {% if post.quickVideo and post.quickShowVideo and post.quickVideoHeight and post.quickVideoWidth %}
{% elseif image %} {% endif %}

{{- title -}}

{{ url }}

{% if post.contentFormat == 'html' %} {{- post.content|murph_url|file_attributes|post -}} {% elseif post.contentFormat == 'markdown' %} {{- post.content|murph_url|file_attributes|markdown('post') -}} {% elseif post.contentFormat == 'editorjs' %} {{- post.content|murph_url|file_attributes|editorjs_to_html -}} {% endif %} {% if not full %}

{{- 'Lien permanent' -}}

{% endif %}
{% else %} {% if not full %}

{{- post.title -}}

{% endif %}
{% if post.contentFormat == 'html' %} {{- post.content|murph_url|file_attributes|post -}} {% elseif post.contentFormat == 'markdown' %} {{- post.content|murph_url|file_attributes|markdown('post')|lazy_load -}} {% elseif post.contentFormat == 'editorjs' %} {{- post.content|murph_url|file_attributes|editorjs_to_html|raw -}} {% endif %}
{% endif %}
{% if full %}

{% set comments = post.comments({ isActive: true, isFirstLevel: true }) %} {% if comments|length %}
{% for comment in comments %} {{ include('page/post/_comment.html.twig', {comment: comment, level: 1}) }} {% endfor %}
{% endif %}
{% if comments|length %}
{% endif %}
Ajouter un commentaire
{{ form_label(form.author) }} {{ form_widget(form.author) }} {{ form_errors(form.author) }}
{{ form_label(form.website) }} {{ form_widget(form.website) }} {{ form_errors(form.website) }}
{{ form_label(form.email) }} {{ form_widget(form.email) }} {{ form_errors(form.email) }}
{{ form_label(form.follow) }} {{ form_widget(form.follow) }} {{ form_errors(form.follow) }}

{{- 'Votre commentaire - Vous pouvez utiliser du markdown ' }} [?]

{{ form_errors(form.content) }} {{ form_widget(form.content, {attr: {cols: 30, rows: 10}}) }}
{{ form_label(form.captcha) }} {{ form_widget(form.captcha) }}
{{ form_rest(form) }}
{% if not post.isQuick %} {% set ld = { '@context': 'http://schema.org/', '@type': 'BlogPosting', 'headline': post.title, 'author': { '@type': 'Person', 'name': 'Simon Vieille' }, 'publisher': { '@type': 'Organization', 'name': 'Deblan blog', 'logo': { '@type': 'imageObject', 'url': asset('build/images/logo.png') } }, 'datePublished': post.publishedAt|date("c"), 'dateModified': post.updatedAt|date("c"), 'image': post.image ? asset(post.image) : null } %} {% endif %} {% endif %}