{% set url = safe_path('blog_menu_post', {post: post.id, slug: post.slug, _domain: _domain}) %} {% set color = generate_color_by_string(post.title) %} {%- set image -%} {%- if post.image2 -%} {{ asset(post.image2)|imagine_filter('post_preview_filter') }} {%- elseif post.image -%} {{ asset(post.image)|imagine_filter('post_preview_filter') }} {%- elseif post.quickImage -%} {{ post.quickImage }} {% else %} {{ asset('build/images/post-image-logo.png') }} {%- endif -%} {%- endset -%}
{{ post.title }}

{{- post.title|nbsp|raw -}}

{% set content %} {% 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 %} {%- endset -%} {% set summarySize = summarySize ?? 200 %} {% set content = content|striptags[:summarySize] %}

{{- content -}}{% if content|length >= summarySize %}…{% endif %}