Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
20
themes/docdock/layouts/_default/list.html
Normal file
20
themes/docdock/layouts/_default/list.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
{{if .Content}}
|
||||
{{ .Content }}
|
||||
{{else }}
|
||||
{{ $paginator := .Paginator }}
|
||||
|
||||
<div class="extra-pagination inner">
|
||||
{{ partial "pagination.html" $paginator }}
|
||||
</div>
|
||||
|
||||
{{ range $index, $page := $paginator.Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
|
||||
<div style="margin-bottom:2rem"></div>
|
||||
|
||||
{{ partial "pagination.html" $paginator }}
|
||||
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user