terms.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. {{ define "main" }}
  2. {{ range .Paginator.Pages.ByTitle }}
  3. <article class="gdoc-post">
  4. <header class="gdoc-post__header">
  5. <h1 class="gdoc-post__title">
  6. <a href="{{ .RelPermalink }}">{{ partial "utils/title" . }}</a>
  7. </h1>
  8. </header>
  9. <footer class="gdoc-post__meta flex align-center">
  10. <span class="flex align-center no-wrap">
  11. {{ $pageCount := len .Pages }}
  12. <svg class="gdoc-icon gdoc_tag"><use xlink:href="#gdoc_tag"></use></svg>
  13. <span class="gdoc-post__tag">
  14. {{ i18n "posts_count" $pageCount }}
  15. </span>
  16. </span>
  17. <span class="flex align-center no-wrap">
  18. <svg class="gdoc-icon gdoc_star"><use xlink:href="#gdoc_star"></use></svg>
  19. <span>
  20. {{ $latet := index .Pages.ByDate 0 }}
  21. {{ with $latet }}
  22. <a href="{{ .RelPermalink }}">{{ partial "utils/title" . }}</a>
  23. {{ end }}
  24. </span>
  25. </span>
  26. </footer>
  27. </article>
  28. {{ end }}
  29. {{ partial "pagination.html" . }}
  30. {{ end }}