<!DOCTYPE html>
<html
  xmlns:th="https://www.thymeleaf.org"
  th:replace="~{modules/layout :: html(title = |#{page.tags.title} - ${site.title}|, pageType = 'tags', terminalUserName = 'admin', content = ~{::content})}"
>
  <th:block th:fragment="content">
    <section class="devcm-editor-window">
      <div class="devcm-editor-tabs">
        <div class="devcm-editor-tab devcm-editor-tab--active">
          <span>tags.md</span>
          <a
            class="devcm-editor-tab__close"
            href="/"
            th:aria-label="#{devcm.action.closeTagsTab}"
            th:title="#{devcm.action.closeTagsTab}"
            >×</a
          >
        </div>
      </div>
      <div class="devcm-editor-body">
        <h1 class="devcm-page-title" th:text="#{devcm.tags.title}">All tags</h1>
        <div class="devcm-tag-cloud devcm-tag-cloud--page">
          <a
            class="devcm-tag"
            th:each="tag : ${tags}"
            th:href="${tag.status.permalink}"
            th:text="'#' + ${tag.spec.displayName} + ' (' + ${tag.status.visiblePostCount != null ? tag.status.visiblePostCount : 0} + ')'"
          >
            #tag
          </a>
        </div>
      </div>
    </section>
  </th:block>
</html>
