mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-09-28 17:32:33 +02:00
fix(translation_list): wrap translation label in a span for better styling
fix(post_meta): add span tags for reading time, word count, and author metadata fix(edit_post): wrap edit link in a span for consistent styling
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
{{- end }}
|
||||
|
||||
{{- if (.Param "ShowReadingTime") -}}
|
||||
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
|
||||
{{- $scratch.Add "meta" (slice (printf "<span>%s</span>" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime)))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if (.Param "ShowWordCount") -}}
|
||||
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
|
||||
{{- $scratch.Add "meta" (slice (printf "<span>%s</span>" (i18n "words" .WordCount | default (printf "%d words" .WordCount)))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if not (.Param "hideAuthor") -}}
|
||||
{{- with (partial "author.html" .) }}
|
||||
{{- $scratch.Add "meta" (slice .) }}
|
||||
{{- $scratch.Add "meta" (slice (printf "<span>%s</span>" .)) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
Reference in New Issue
Block a user