File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1+ {{- if or .Params.author site.Params.author }}
2+ {{- $author := (.Params.author | default site.Params.author) }}
3+ {{- $author_type := (printf "%T" $author) }}
4+ {{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
5+ {{- (delimit $author ", " ) }}
6+ {{- else }}
7+ {{- $author }}
8+ {{- end }}
9+ {{- end -}}
Original file line number Diff line number Diff line change 66{{- $rawDate := .Date.Format "2006-01-02T15:04:05Z07:00" -}}
77{{- $formatted := .Date | time.Format $timeFormat -}}
88{{- $text := printf (i18n "created_date") $formatted -}}
9- {{- $html := printf `< span title ="%s "> %s</ span > ` $rawDate $text | safeHTML -}}
10- {{- $scratch.Add "meta" (slice $html) -}}
9+ {{- $scratch.Add "meta" (printf `< span title ="%s "> %s</ span > ` $rawDate $text) -}}
1110{{- end -}}
1211
1312{{- if (.Param "ShowLastMod") -}}
1413{{- $rawLastmod := .Lastmod.Format "2006-01-02T15:04:05Z07:00" -}}
1514{{- $formatted := .Lastmod | time.Format $timeFormat -}}
1615{{- $text := printf (i18n "modified_date") $formatted -}}
17- {{- $html := printf `< span title ="%s "> %s</ span > ` $rawLastmod $text | safeHTML -}}
18- {{- $scratch.Add "meta" (slice $html) -}}
19- {{- end }}
16+ {{- $scratch.Add "meta" (printf `< span title ="%s "> %s</ span > ` $rawLastmod $text) -}}
17+ {{- end -}}
2018
2119{{- if (.Param "ShowReadingTime") -}}
2220{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
You can’t perform that action at this time.
0 commit comments