Fix: some minor omissions

This commit is contained in:
Cell
2023-12-29 19:28:25 +08:00
parent 8e3d880557
commit 175a307673
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -17,7 +17,13 @@
{{- $hasTitle = true -}}
{{- end -}}
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">{{- .LinkTitle -}}</a>
<a href="{{ .RelPermalink }}" class="archive-item-link">
{{- $repost := .Params.repost | default dict -}}
{{- if eq $repost.enable true -}}
{{- dict "Class" "fa-solid fa-share fa-fw text-success me-1" | partial "plugin/icon.html" -}}
{{- end -}}
{{- .LinkTitle -}}
</a>
<span class="archive-item-date" title='{{ "2006-01-02 15:04:05" | .Lastmod.Format }}'>
{{- with .Lastmod | dateFormat (.Site.Params.section.dateformat | default "01-02") -}}
{{- dict "Date" . | T "single.updatedOnDate" -}}
+1 -1
View File
@@ -12,7 +12,7 @@
-}}
<div class="collection-card">
<div class="collection-title text-secondary">
{{- dict "Collections" $termLink | T "single.includedIn.collections" | safeHTML }} {{ .Pages.Len -}}
{{- dict "Collections" $termLink | T "single.includedIn.collections" | strings.FirstUpper | safeHTML }} {{ .Pages.Len -}}
</div>
<div class="collection-nav">
{{- $pages := (where .Pages "Params.Weight" "!=" nil) | append (where .Pages "Params.Weight" "eq" nil).ByDate -}}