mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 06:15:13 +00:00
1 parent
cbeca239dc
commit
bf696662e5
1 file changed
+30
@@ -0,0 +1,30 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<div class="universal-wrapper">
|
||||
{{ with .Content }}
|
||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
||||
<ul>
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $k, $v := $paginator.Pages }}
|
||||
{{ $person_page_path := (printf "/author/%s" (urlize $v.Title)) }}
|
||||
{{ $person_page := $.Site.GetPage $person_page_path }}
|
||||
{{ $name := "" }}
|
||||
{{ if $person_page }}
|
||||
{{ $person := $person_page.Params }}
|
||||
{{ $name = $person.name }}
|
||||
{{ else }}
|
||||
{{ $name = $v.Title | plainify }}
|
||||
{{ end }}
|
||||
<li><a href="{{ $v.Permalink }}">{{ $name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
Reference in new issue
Block a user