{% assign X = 'custom_blocks.homepage_blog.title' | t %}{% if X.size > 0 %}{{ X }}{% else %}{{ settings.homepage_blog_title }}{% endif %}

{% for article in blogs[settings.homepage_blog_select].articles limit:6 %}

{{ article.title | truncate:31 }}

{% if article.image %}
{{ article.image.src | img_url: '500x322', crop: 'top' | img_tag: article.title }}
{% endif %}
{{ article.content | truncatewords: 29 }}
{% assign X = 'blog.general.read_more' | t %}{% if X.size > 0 %}{{ X }}{% else %}Read more{% endif %}
{% endfor %}