chore: add PaperMod theme files
This commit is contained in:
1 parent
a3365e53a5
commit
58fda1b0b3
126 files changed
+6260
-1
No files matched your search
@@ -0,0 +1,25 @@
|
||||
{{- $meta := slice }}
|
||||
|
||||
{{- if not .Date.IsZero -}}
|
||||
{{- $meta = $meta | append (printf "<span title='%s'>%s</span>" (.Date | time.Format "2006-01-02T15:04:05-07:00") (.Date | time.Format (default ":date_long" site.Params.DateFormat))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if (.Param "ShowReadingTime") -}}
|
||||
{{- $meta = $meta | append (printf "<span>%s</span>" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if (.Param "ShowWordCount") -}}
|
||||
{{- $meta = $meta | append (printf "<span>%s</span>" (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if not (.Param "hideAuthor") -}}
|
||||
{{- with (partial "author.html" .) }}
|
||||
{{- $meta = $meta | append (printf "<span>%s</span>" .) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/* Combine all meta information into a single string with separators and render it as HTML.*/}}
|
||||
|
||||
{{- with $meta }}
|
||||
{{- delimit . " · " | safeHTML -}}
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user