list.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. <div class="article-widget">
  18. <div class="hr-light"></div>
  19. <h3>{{ i18n "related" }}</h3>
  20. <ul>
  21. {{ range .Pages }}
  22. <li>
  23. <a href="{{ .Permalink }}">{{ .Title }}</a>
  24. </li>
  25. {{ end }}
  26. </ul>
  27. </div>
  28. </div>
  29. </section>
  30. <!-- Page Footer -->
  31. {{ partial "footer_container.html" . }}
  32. {{ partial "footer.html" . }}