Rebuilding the Machine Listening Curriculum beginning in 2024
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.

24 regels
1.2 KiB

  1. {{ define "keywords" }}
  2. {{ $p := split (trim .RelPermalink "/") "/" }}
  3. {{ if eq (len $p) 1 }}
  4. <div class="coretitle"><span class="supt">{{ index $p 0 }}⁄</span>All</div>
  5. {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
  6. {{ if eq (index $p 0) $taxonomyname }}
  7. {{ range $key, $value := $taxonomy }}
  8. <span> <a href="/{{ index $p 0 }}/{{ $key }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $key }}</a>({{ len (index (index $.Site.Taxonomies $taxonomyname) $key) }})</span>
  9. {{ end }}
  10. {{ end }}
  11. {{ end }}
  12. {{ else }}
  13. <div class="coretitle"><span class="supt">{{ index $p 0 }}⁄</span>{{ index $p 1 }}</div>
  14. {{ range .Pages.ByDate.Reverse }}
  15. <div class="blog-date">{{ .Date.Format "Jan 2, 2006" }}</div>
  16. <div class="blog-title"><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div>
  17. {{ range $n, $authorFile := .Params.authors }}
  18. {{ $author := $.GetPage (printf "/author/%s" $authorFile) }}
  19. <span class="blog-author"><a href="{{ $author.RelPermalink }}">{{ $author.Title }}</a></span>
  20. {{ end }}
  21. {{ end }}
  22. {{ end }}
  23. {{ end }}