Mobile-responsive personal website, generated using Hugo. https://kevin-mok.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
981 B

  1. {{ $baseurl := .Site.BaseURL }}
  2. <main role="main" class="homepage">
  3. <!-- {{ partial "about.html" . }} -->
  4. <!-- <h1 class="headline">Recent Posts</h1>
  5. <div class="article-list">
  6. {{ range first 3 (where .Data.Pages "Section" "post") }}
  7. {{ partial "article-list-item.html" . }}
  8. {{ end }}
  9. </div> -->
  10. {{ with .Site.Taxonomies.categories }}
  11. <h1 class="headline">Categories</h1>
  12. <section class="categories">
  13. {{ range $name, $value := . }}
  14. <h2 class="category">
  15. <a href="{{ $baseurl }}categories/{{ $name | urlize }}">{{ title $name }}</a>
  16. <small>({{ .Count }})</small>
  17. </h2>
  18. {{ end }}
  19. </section>
  20. {{ end }}
  21. {{ with .Site.Taxonomies.tags }}
  22. <h1 class="headline">Tags</h1>
  23. <section class="tags">
  24. {{ range $name, $value := . }}
  25. <span class="tag">
  26. <a href="{{ $baseurl }}tags/{{ $name | urlize }}">{{ $name }}</a>
  27. <small>({{ .Count }})</small>
  28. </span>
  29. {{ end }}
  30. </section>
  31. {{ end }}
  32. </main>