mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-26 20:16:17 +00:00
- 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
30 lines
845 B
HTML
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" . }}
|