Add grouping of related pages to contributor layout #11
1 changed files with 8 additions and 2 deletions
|
|
@ -63,8 +63,14 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ range (.Paginate .Pages).Pages }}
|
||||
{{ range (.Paginate (.Pages.GroupBy "Type")).PageGroups }}
|
||||
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">
|
||||
{{ .Key }}
|
||||
</h2>
|
||||
<hr class="w-36 border-dotted border-neutral-400" />
|
||||
{{ range .Pages.ByParam "sortkey" }}
|
||||
{{ partial "article-link.html" . }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue