<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org"
      th:replace="~{modules/layouts/layout :: layout(_head = null,_content = ~{::content},_title = ${'标签' + ': ' + tag.spec.displayName + ' - ' + site.title})}">

<th:block th:fragment="content">

  <div class="page_main uk-width-2-3@m">

    <th:block th:replace="~{modules/header}"/>

    <div id="pjax-container">

      <main id="primary" class="site-main">
        <div class="archive_main" uk-height-viewport="offset-top: true">

          <header class="page-header">
            <div class="cat_img"><img
                    th:src="${not #strings.isEmpty(tag.spec.cover) ? thumbnail.gen(tag.spec.cover, 's') : theme.config.post.tag_banner}">
            </div>
            <div class="cat_title">
              <h1 class="page-title">标签： <span>[[${tag.spec.displayName}]]</span></h1>
            </div>

          </header>

          <div id="post_item" class="archive_list norpost_list " th:with='postItems=${posts.items}'
               th:classappend="${theme.config.post.post_list_type == 'grid' ? 'uk-grid-small uk-grid' : ''}">

            <th:block th:replace="~{'macro/tpl/content-post'}"></th:block>

            <th:block th:if="${#lists.isEmpty(postItems)}">
              <th:block th:replace="~{macro/tpl/content-none}"/>
            </th:block>
          </div>

          <div th:if="${posts.hasNext}" class="arc_pagenav post-paging">
            <a th:data="@{${posts.nextUrl}}" th:text="${theme.config.base_set.site_page}"></a>
          </div>

        </div>
      </main>

    </div>

    <th:block th:replace="~{modules/footer-main}"/>

  </div>
</th:block>

</html>