Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matcornic/hugo-theme-learn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJian Liew <jianloongliew@gmail.com>2020-11-12 12:48:55 +0300
committerGitHub <noreply@github.com>2020-11-12 12:48:55 +0300
commitae732f39317e4619770bc086e08ac21a256fa0e3 (patch)
treec662ecb7bc289d1dc011ea484f1dda54afa40875 /layouts
parentc3a66e9b4d8b3b58708d4682e7c779af00ef496c (diff)
Added binary prefix for kilobyte using i18n (#461)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/attachments.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/attachments.html b/layouts/shortcodes/attachments.html
index 1725fc4..d688b71 100644
--- a/layouts/shortcodes/attachments.html
+++ b/layouts/shortcodes/attachments.html
@@ -18,7 +18,7 @@
<a href="{{ (printf "%s%s/%s" $fileDir ($.Scratch.Get "filesName") .Name) | relURL }}" >
{{.Name}}
</a>
- ({{div .Size 1024 }} ko)
+ ({{div .Size 1024 }} {{T "BinaryPrefix-kilobyte"}})
</li>
{{end}}
{{else}}
@@ -26,7 +26,7 @@
<a href="{{ (printf "%s%s/%s" $fileDir ($.Scratch.Get "filesName") .Name) | relURL }}" >
{{.Name}}
</a>
- ({{div .Size 1024 }} ko)
+ ({{div .Size 1024 }} {{T "BinaryPrefix-kilobyte"}})
</li>
{{end}}
{{end}}