{#
Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{# 投稿リストの取得 #}
{% set post_list = TabaCMSPostList({page_count:10}) %}
{% block javascript %}
{{ TabaCMSAsset('script.js','script')|raw }}
{% endblock javascript %}
{% block stylesheet %}
{{ TabaCMSAsset('style.css','style')|raw }}
{% endblock stylesheet %}
{% set breadcrumbs = [{'name': 'ニュース'}] %}
{% block main %}
<section class="px-6 pb-10 pt-[7.5rem] md:pt-20 md:pb-1 text-black">
<div class="mx-auto w-full max-w-[63rem]">
<h1 class="flex items-start gap-4 md:gap-2">
<span class="block h-[7.5rem] w-0.5 bg-gradient-to-b from-[#ADAAA6] md:h-16 md:w-px"></span>
<p class="text-[2rem] font-light leading-normal tracking-widest md:text-xl">
ニュース</p>
</h1>
</div>
</section>
{{ include('Block/breadcrumb.twig') }}
<section class="px-6 pb-[7.5rem] md:pb-20 text-black tracking-wider">
<div class="mx-auto w-full max-w-[50rem]">
<div class="grid border-t border-sub-gray">
{% for post in post_list %}
<a href="{{ post.getURI }}" class="grid gap-6 py-10 md:gap-4 border-b border-sub-gray hover">
<h2 class="line-clamp-2 text-xl md:text-base font-medium leading-[1.8] text-black ">
<span class="sr-only">タイトル:</span>
{{ post.getTitle }}</h2>
<time datetime={{ post.getPublicDate|date('Y-m-d') }} class="text-right text-sm text-black">
<span class="sr-only">投稿日:</span>
{{ post.getPublicDate|date('Y.m.d') }}</time>
</a>
{% endfor %}
</div>
{% if post_list.totalItemCount > 0 %}
{% include "pager.twig" with {'pages':post_list.paginationData} %}
{% endif %}
</div>
</section>
{% endblock %}