we screw up sometimes but they're usually fun stories
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.

35 lines
1.1 KiB

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