list.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{ partial "header.html" . }}
  2. {{ partial "navbar.html" . }}
  3. {{/* Just display author name as title if user profile unavailable. */}}
  4. {{ if not (site.GetPage (printf "/author/%s" (urlize .Title))) }}
  5. <div class="universal-wrapper pt-3">
  6. <h1 itemprop="name">{{ .Title }}</h1>
  7. </div>
  8. {{ end }}
  9. <section id="about" class="pt-5">
  10. <div class="container">
  11. {{/* Only show About widget if a profile has been configured for this user. */}}
  12. {{ $widget := "widgets/about.html" }}
  13. {{ $params := dict "root" $ "page" . "author" .Title }}
  14. {{ with site.GetPage (printf "/author/%s" (urlize .Title)) }}
  15. {{ partial $widget $params }}
  16. {{ end }}
  17. {{ $query := where .Pages ".IsNode" false }}
  18. {{ $count := len $query }}
  19. {{ if $count }}
  20. <div class="article-widget">
  21. <div class="hr-light"></div>
  22. <h3>{{ i18n "user_profile_latest" | default "Latest" }}</h3>
  23. <ul>
  24. {{ range $query }}
  25. <li>
  26. <a href="{{ .RelPermalink }}">{{ .Title }}</a>
  27. </li>
  28. {{ end }}
  29. </ul>
  30. </div>
  31. </div>
  32. {{ end }}
  33. </section>
  34. <!-- Page Footer -->
  35. {{ partial "footer_container.html" . }}
  36. {{ partial "footer.html" . }}