Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- layout: default
- ---
- <!-- メインコンテンツ。内容はいろいろ変わる -->
- <div class="contents front-page">
- <div class="container">
- {% for post in paginator.posts %}
- <article class="archive">
- <h2 class="archive__title"><a href="{{ post.url | prepend: baseurl }}">{{ post.title }}</a></h2>
- <p class="archive__date"><time>{{ post.date | date: '%B %d, %Y' }}</time></p>
- <div class="archive__excerpt">{{ post.excerpt }}</div>
- </article>
- {% endfor %}
- {% if paginator.total_pages > 1 %}
- <div class="pagination">
- <p class="pagination__item--prev">
- {% if paginator.previous_page %}
- < <a href="{{ paginator.previous_page_path | relative_url }}">前のページ</a>
- {% endif %}
- </p>
- <p class="pagination__item pagination__number">
- {{ paginator.page }} / {{ paginator.total_pages }}
- </p>
- <p class="pagination__item--next">
- {% if paginator.next_page %}
- <a href="{{ paginator.next_page_path | relative_url }}">次のページ</a> >
- {% endif %}
- </p>
- </div><!--pagination-->
- {% endif %}
- </div><!--container-->
- </div><!--main-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement