Remove trim blank charsets flag to improve speed.

This commit is contained in:
凡梦星尘
2023-01-01 21:12:58 +08:00
parent d0a6d943e0
commit a2f37c8470
55 changed files with 494 additions and 496 deletions

View File

@@ -1,30 +1,30 @@
{{- define "title" }}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "AllSome" }} - {{ .Site.Title -}}
{{- end -}}
{{ define "title" }}
{{ .Params.Title | default (T .Section) | default .Section | dict "Some" | T "AllSome" }} - {{ .Site.Title }}
{{ end }}
{{ define "main_inner_class" }}archive posts-collapse{{ end }}
{{- define "main" }}
{{ define "main" }}
<div class="post-block">
<div class="post-content">
<div class="collection-title">
{{- $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 }}
{{ $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 }}
<span class="collection-header">
{{- T (printf "PostArchiveCheers%s" $cheers) }}
{{- T "SymbolComma" }}
{{- T "ArchiveCounterTitle" $posts | safeHTML }}
{{- T "SymbolComma" }}
{{- T "PostArchiveKeepOn" }}
{{ T (printf "PostArchiveCheers%s" $cheers) }}
{{ T "SymbolComma" }}
{{ T "ArchiveCounterTitle" $posts | safeHTML }}
{{ T "SymbolComma" }}
{{ T "PostArchiveKeepOn" }}
</span>
</div>
@@ -32,5 +32,5 @@
</div>
</div>
{{- partial "pagination.html" . }}
{{- end }}
{{ partial "pagination.html" . }}
{{ end }}