Files
HugoBlox-kit/layouts/author/list.html
T
George Cushen ab7e896227 feat(user): add author profile system
- Add author taxonomy to config
- Restructure user data
- Add user profile pages
- Refactor author profile box
- Refactor author link in page metadata to point to author profile page
- Enable About widget to be re-used for different users

BREAKING CHANGES
See issue below and v4 release note for details

See #752
2019-01-20 00:10:03 +00:00

30 lines
845 B
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
{{ partial "page_header.html" . }}
<section id="about" class="home-section">
<div class="container">
{{/* Only show About widget if a profile has been configured for this user. */}}
{{ $widget := "widgets/about.html" }}
{{ $params := dict "root" $ "page" . "author" .Title }}
{{ with $.Site.GetPage (printf "/author/%s" (urlize .Title)) }}
{{ partial $widget $params }}
{{ end }}
<div class="article-widget">
<div class="hr-light"></div>
<h3>{{ i18n "related" }}</h3>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>
</div>
</section>
<!-- Page Footer -->
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}