{% cache article, "article", max_ttl: 600 %}
{{ article.category.name }}
{{ article.updated_at | date: '%Y.%m.%d' }}
{{ article.description | newline_to_br | auto_link }}
{% assign show_index = article | attribute: 'Indexの表示' %} {% if show_index == '表示' %} {% assign headings = article.items | headings_per_page %} {% if headings.size > 0 %}INDEX
{{ item.comment | newline_to_br | auto_link }}
{% endif %} {% if item.source != blank %}引用元: {% if item.url != blank %} {{ item.source }} {% else %} {{ item.source }} {% endif %}
{% endif %}{{ item.body | newline_to_br }}
{{ item.body | newline_to_br }}
{{ article.user.name }}
{{ article.user.bio | newline_to_br | auto_link }}
{% capture html %} {% for i in (1..3) %} {% capture str %}url{{ i }}{% endcapture %} {% assign url = article.user[str] %} {% if url != blank %} {% if url contains 'youtube.com' %} {% elsif url contains 'twitter.com' %} {% elsif url contains 'facebook.com' %} {% elsif url contains 'instagram.com' %} {% elsif url contains 'page.line.me' %} {% elsif url contains 'tiktok.com' %} {% else %} {% endif %} {{ url }} {% endif %} {% endfor %} {% endcapture %} {% if html != blank %}{{ comment.body | newline_to_br }}