diff options
| author | Francesco <tomaselli.fr@gmail.com> | 2024-05-06 21:53:29 +0200 | 
|---|---|---|
| committer | Francesco <tomaselli.fr@gmail.com> | 2024-05-06 21:53:29 +0200 | 
| commit | 1ee175c6bea9bdc15188ad475565149487cb27f2 (patch) | |
| tree | 815d76d751052ec1f3ed169ba6debd7f9d9c9a63 /layouts/_default/list.html | |
| parent | 769239a8e95cf761075a1248818a6578d7522fac (diff) | |
Breadcrumbs tmp
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8c52a86..5cf6c81 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,12 @@  {{ define "main" }} + +{{ partial "breadcrumbs.html" . }} +  <h1>{{ .Title }}</h1>  {{ .Content }} +{{ $tagsPage := eq .Title "Tags"}} +  {{ $paginationSize := 1}}  {{ if (gt .Site.Params.paginationSize 0) }}  {{ $paginationSize = .Site.Params.paginationSize }} @@ -10,9 +15,15 @@  {{ $paginator := .Paginate (.Pages) $paginationSize }}  {{ range $index, $page := $paginator.Pages }} + +{{ if $tagsPage }} +{{ partial "tag-entry.html" $page}} +{{ else }}  {{ partial "post-entry.html" $page}}  {{ end }} +{{ end }} +  {{ partial "pagination-controls.html" $paginator}}  {{ end }}
\ No newline at end of file | 
