2023-01-01 21:12:58 +08:00
|
|
|
{{ define "title" }}
|
|
|
|
{{ .Params.Title | default (T .Section) | default .Section | dict "Some" | T "AllSome" }} - {{ .Site.Title }}
|
|
|
|
{{ end }}
|
2022-07-30 17:39:57 +08:00
|
|
|
{{ define "main_inner_class" }}archive posts-collapse{{ end }}
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ define "main" }}
|
2022-07-30 17:39:57 +08:00
|
|
|
<div class="post-block">
|
|
|
|
<div class="post-content">
|
|
|
|
<div class="collection-title">
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ $cheers := "Um" }}
|
|
|
|
{{ $posts := .Scratch.Get "postsCount" }}
|
|
|
|
{{ if gt $posts 210 }}
|
|
|
|
{{ $cheers = "Excellent" }}
|
|
|
|
{{ else if gt $posts 130 }}
|
|
|
|
{{ $cheers = "Great" }}
|
|
|
|
{{ else if gt $posts 80 }}
|
|
|
|
{{ $cheers = "Good" }}
|
|
|
|
{{ else if gt $posts 50 }}
|
|
|
|
{{ $cheers = "Nice" }}
|
|
|
|
{{ else if gt $posts 30 }}
|
|
|
|
{{ $cheers = "Ok" }}
|
|
|
|
{{ end }}
|
2022-07-30 17:39:57 +08:00
|
|
|
<span class="collection-header">
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ T (printf "PostArchiveCheers%s" $cheers) }}
|
|
|
|
{{ T "SymbolComma" }}
|
|
|
|
{{ T "ArchiveCounterTitle" $posts | safeHTML }}
|
|
|
|
{{ T "SymbolComma" }}
|
|
|
|
{{ T "PostArchiveKeepOn" }}
|
2022-07-30 17:39:57 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ .Render "list" }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
{{ end }}
|