diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-24 03:20:47 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-24 03:20:47 +0000 |
commit | f24f2d15275961f1c0144e68fde75a60aeaaa165 (patch) | |
tree | 38be1626f3ade436fbd17eadb2753fa2f0effb37 /themes/even/layouts/_default/section.html | |
parent | bf04383b34c4a4fdfe239de2805a30a051921002 (diff) | |
download | capotej.com-f24f2d15275961f1c0144e68fde75a60aeaaa165.tar.gz |
move to bear theme
Diffstat (limited to '')
-rw-r--r-- | themes/even/layouts/_default/section.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/themes/even/layouts/_default/section.html b/themes/even/layouts/_default/section.html deleted file mode 100644 index fbe80f1..0000000 --- a/themes/even/layouts/_default/section.html +++ /dev/null @@ -1,50 +0,0 @@ -{{ define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end }} - -{{ define "content"}} -{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }} -<section id="archive" class="archive"> - {{- if and (not $paginator.HasPrev) .Site.Params.showArchiveCount }} - <div class="archive-title"> - <span class="archive-post-counter"> - {{ T "archiveCounter" (len .Data.Pages) }} - </span> - </div> - {{- end -}} - - {{- range $index, $element := $paginator.Pages -}} - {{- $thisYear := $element.Date.Format "2006" }} - {{- $lastElement := $index | add -1 | index $paginator.Pages }} - {{ if or (eq $index 0) ( ne ($lastElement.Date.Format "2006") $thisYear ) }} - <div class="collection-title"> - <h2 class="archive-year">{{ $thisYear }}</h2> - </div> - {{- end }} - - <div class="archive-post"> - <span class="archive-post-time"> - {{ $element.Date.Format "01-02" }} - </span> - <span class="archive-post-title"> - <a href="{{ $element.URL }}" class="archive-post-link"> - {{ .Title }} - </a> - </span> - </div> - {{- end -}} -</section> -<!-- pagination --> -<nav class="pagination"> - {{ with $paginator.Prev -}} - <a class="prev" href="{{ .URL }}"> - <i class="iconfont icon-left"></i> - <span class="prev-text">{{ T "prevPage" }}</span> - </a> - {{- end }} - {{ with $paginator.Next -}} - <a class="next" href="{{ .URL }}"> - <span class="next-text">{{ T "nextPage" }}</span> - <i class="iconfont icon-right"></i> - </a> - {{- end }} -</nav> -{{ end }} |