author.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {{ define "main" }}
  2. {{ $filter := slice "showcase" }}
  3. {{ range first 1 (shuffle (where (where .Site.Pages "Params.authors" "intersect" (slice .Data.Term) ) "Params.tags" "intersect" $filter ))}}
  4. {{ partial "showcaseBanner.html" . }}
  5. {{ end }}
  6. <a id="content"></a>
  7. <section class="list hlist responsiveWidth">
  8. <figure class="githubUser " github-user="{{ .Data.Term }}">
  9. <img src="https://avatars.githubusercontent.com/{{ lower .Data.Term }}">
  10. <figcaption>
  11. <h2 alt="{{ .Data.Term }}" class="ghname" ghresolve-name="innerText">
  12. {{ .Data.Term }}
  13. </h2>
  14. <span ghresolve-bio="innerText" class="ghbio"></span>
  15. <div>
  16. <a alt="github link" title="Github" href="https://github.com/{{ lower .Data.Term }}"><i class="fab fa-github"></i></a>
  17. <a alt="twitter link" title="Twitter" ghresolve-twitter_link="href" class="ghtwitter_link" href="" style="display:none"><i class="fab fa-twitter"></i></a>
  18. <a alt="website link" title="Website" ghresolve-blog="href" class="ghblog" href="" style="display:none"><i class="fas fa-globe"></i></a>
  19. </div>
  20. </figcaption>
  21. </figure>
  22. </section>
  23. <section class="list responsiveWidth list vlist">
  24. {{ $paginator := .Paginator }}
  25. {{ range $paginator.Pages }}
  26. {{ partial "articlePreview.html" . }}
  27. {{ end }}
  28. </section>
  29. {{ $paginator := .Paginator }}
  30. <section class="pagination responsiveWidth">
  31. {{ if $paginator.HasPrev }}
  32. <a href="{{ .Paginator.Prev.URL }}"><i class="fas fa-caret-left"></i></a>
  33. {{ end }}
  34. Page {{ $paginator.PageNumber }} of {{$paginator.TotalPages }}
  35. {{ if $paginator.HasNext }}
  36. <a href="{{ .Paginator.Next.URL }}"><i class="fas fa-caret-right"></i></a>
  37. {{ end }}
  38. </section>
  39. <h1>Authors</h1>
  40. <section class="list hlist responsiveWidth">
  41. <ul class="list hlist">
  42. {{ range $key, $value := .Site.Taxonomies.authors }}
  43. <li>
  44. <a href="/authors/{{ $key }}"><i class="fas fa-at"></i> {{ $key }}</a>
  45. </li>
  46. {{ end }}
  47. </ul>
  48. </section>
  49. {{ end }}