mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 14:39:44 +00:00
parent
9033266c2f
commit
6766e09744
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
{{ define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "content"}}
|
||||
{{- $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }}
|
||||
{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
|
||||
<section id="archive" class="archive">
|
||||
{{- if not $paginator.HasPrev }}
|
||||
<div class="archive-title">
|
||||
|
@ -47,4 +47,4 @@
|
|||
</a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "content"}}
|
||||
{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }}
|
||||
{{ $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
|
||||
<section id="archive" class="archive">
|
||||
{{ if not $paginator.HasPrev }}
|
||||
{{ if eq .Data.Plural "tags" }}
|
||||
|
@ -43,4 +43,4 @@
|
|||
</a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue