お知らせのセクションで、ブログ記事から設定し表示できるように下記のコードを記述しています。
タグの部分で記事で設定した画像を表示させていますが、記事にサムネイルが無い場合にある特定の画像を表示させたいのですが、if else文だと思うのですが、どう記述すれば良いか教えていただけますでしょうか。よろしくお願いします。
{% for article in blog.articles limit: section.settings.post_limit %}
****
{% endfor %}
{% if section.settings.new-news_date %}
{{ article.published_at | date: "%Y.%m.%d" }}
{% endif %}
{% if section.settings.new-news_category %}
#{{ article.tags }}
{% endif %}
{{ article.title }}
more
{%- render 'icon' with 'icon-arrow-small', width: 12, direction_aware: true -%}more
{%- render 'icon' with 'icon-arrow-small-white', width: 12, direction_aware: true -%}