1. Top
  2. >記事一覧

記事一覧

{% assign type = request.params[“type”] %}
{% if type == ‘pc_new’ %}
{% assign articles = site.articles | limit:200 %}
{% elsif type == ‘sp_new’ %}
{% assign articles = site.articles | limit:200 %}
{% endif %}

{% if type == ‘sp_new’ %}
{% paginate articles per 4 %}
{% for article in paginate.collection %}

{% assign other_link = article | attribute: “外部リンク” %}
{% if other_link %}
{% assign article_url = article | attribute: “外部リンク” %}
{% else %}
{% assign article_url = article.path %}
{% endif %}

  • {{ article.title }}

    {{ article.updated_at | date: “%Y.%m.%d” }}

    {{ article.title }}

      {% assign tags = article.ordered_tags | limit: 3 %}
      {% for t in tags %}

    • #{{ t.name }}
    • {% endfor %}

  • {% endfor %}
    {% endpaginate %}
    {% elsif type == ‘pc_new’ %}

    {% paginate articles per 3 %}
    {% for article in paginate.collection %}

    {% assign other_link = article | attribute: “外部リンク” %}
    {% if other_link %}
    {% assign article_url = article | attribute: “外部リンク” %}
    {% else %}
    {% assign article_url = article.path %}
    {% endif %}

  • {{ article.title }}

    {{ article.updated_at | date: “%Y.%m.%d” }}

    {{ article.title }}

      {% assign tags = article.ordered_tags | limit: 3 %}
      {% for t in tags %}

    • #{{ t.name }}
    • {% endfor %}

  • {% endfor %}
    {% endpaginate %}

    {% endif %}