Recipes
{% for article in blog.articles limit:5 %}
{% schema %}
{
"name": "Recent Blogs"
}
{% endschema %}
{% unless article.image == nil %}
{% render 'ratio-image', ratioType: 'vw', dratio: '50', mratio: '100', image: article.image.src, alt: article.image.alt, class: 'blog__listing--image' %}
{% else %}
{% assign imagesrc = 'no-blog-image.png' %}
{% render 'ratio-image-asset', ratioType: 'vw', dratio: '50', mratio: '100', image: imagesrc, class: 'blog__listing--image' %}
{% endunless %}
{% endfor %}
{% for tag in article.tags %}
{{tag | camelcase}}
{% endfor %}
{{ article.title }}
{{ article.published_at | date: '%B %d, %Y' }}
{% if tag contains '@time' %}
{% assign article_content = article.content %}
{% assign article_read_time = '' %}
{% if article_content!= blank %}
{% assign words = article_content | strip_html | split: ' '%}
{%- assign article_read_time = words.size | divided_by: 200 | round | at_least: 1 -%}
{{ article_read_time }} Mins Read
{% endif %}
{% endif %}