Skip to content

Commit

Permalink
fix spacing before word count (#110)
Browse files Browse the repository at this point in the history
The wordcount spacing was missing from the rendered template.
This is fixed by adding a nbsp as used elsewhere as well.
  • Loading branch information
1bl4z3r authored Jan 31, 2025
2 parents 917a032 + 639820b commit f83985e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/posts_single_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{- with .Params.categories }}
<p>{{- partial "svg.html" (dict "context" . "name" "posts_single_categories") -}}{{- range . -}}<span class="category"><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}">{{.}}</a></span>{{- end }}</p>
{{- end }}
<p>{{- partial "svg.html" (dict "context" . "name" "posts_single_wordcount") }}{{- .WordCount }} {{- if fileExists "i18n" }} {{ i18n "wordCount" . -}} {{- else -}} Words {{- end }} {{ partial "readTime.html" . -}}</p>
<p>{{- partial "svg.html" (dict "context" . "name" "posts_single_wordcount") }}{{- .WordCount }}&nbsp{{- if fileExists "i18n" }} {{ i18n "wordCount" . -}} {{- else -}} Words {{- end }} {{ partial "readTime.html" . -}}</p>
<p>{{- partial "svg.html" (dict "context" . "name" "posts_single_date") }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}
{{ if .Page.Params.ShowLastmod -}}
{{- if and .GitInfo .Site.Params.gitUrl -}}
Expand Down

0 comments on commit f83985e

Please sign in to comment.