🔧 Add special list for archives articles show.

This commit is contained in:
凡梦星尘
2022-07-26 21:41:07 +08:00
parent d42375820d
commit af59e93d25
4 changed files with 40 additions and 29 deletions

View File

@@ -8,6 +8,9 @@
<div class="collection-title">
{{- $cheers := "Um" }}
{{- $posts := .Scratch.Get "postsCount" }}
{{- if and .Page.IsSection (ne .Section "archives") }}
{{- $posts = .Scratch.Get .Section }}
{{- end }}
{{- if gt $posts 210 }}
{{- $cheers = "Excellent" }}
{{- else if gt $posts 130 }}