<featured-blog.liquid>
{%- assign blog = blogs[section.settings.blog] -%}
{% case section.settings.post_limit %}
{% when 3 %}
{%- assign width = 'medium-up--one-third small--one-whole' -%}
{% when 2 %}
{%- assign width = 'medium-up--one-half small--one-whole' -%}
{% when 1 %}
{% if section.settings.blog_show_image %}
{%- assign width = 'medium-up--one-half small--one-whole' -%}
{% else %}
{%- assign width = 'one-whole' -%}
{% endif %}
{% else %}
{%- assign width = 'medium-up--one-third small--one-whole' -%}
{% endcase %}
{% if section.settings.title != blank %}
## {{ section.settings.title | escape }}
{% endif %}
{% unless blog.articles_count == 0 %}
{%- assign desktopColumns = section.settings.articles -%}
{%- assign mobileColumns = '1' -%}
{%- capture gridClasses -%}
{% if desktopColumns == '3' %}medium-up--one-third {% else %}medium-up--one-half {% endif %}
{% if mobileColumns == '2' %}small--one-half {% endif %}
{%- endcapture -%}
{% for article in blog.articles %}
{% include 'article-card', article: article, grid_style: section.settings.grid_style %}
{% endfor %}
{% else %}
{% include 'onboarding-featured-blog' %}
{% endunless %}
{% if blog == empty %}
{% include 'onboarding-featured-blog' %}
{% endif %}
{% if section.settings.show_view_all %}
{{ 'blogs.article.view_all' | t }}
{% endif %}
無料テーマsimpleのファイルを上記の様に編集し、
記事にサムネイル画像が表示される様にしようとしたのですが、
添付写真のように縦に表示されてしまします。
また、カスタマイズ画面で表示数を設定しても、反映されなくなってしまい…。
liquidについてはかなり手探りで、分からなくなってしまいました。
どなたか修正箇所や、このコードを書けばいい等ございましたらお教えいただけますと幸いです。