diff options
Diffstat (limited to 'helpers/hugo.go')
-rw-r--r-- | helpers/hugo.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helpers/hugo.go b/helpers/hugo.go index d1dd57f4d..12d37b54d 100644 --- a/helpers/hugo.go +++ b/helpers/hugo.go @@ -50,14 +50,14 @@ func NextHugoReleaseVersion() string { func hugoVersion(version float32, patchVersion int, suffix string) string { if patchVersion > 0 { - return fmt.Sprintf("%.2g.%d%s", version, patchVersion, suffix) + return fmt.Sprintf("%.2f.%d%s", version, patchVersion, suffix) } - return fmt.Sprintf("%.2g%s", version, suffix) + return fmt.Sprintf("%.2f%s", version, suffix) } func hugoVersionNoSuffix(version float32, patchVersion int) string { if patchVersion > 0 { - return fmt.Sprintf("%.2g.%d", version, patchVersion) + return fmt.Sprintf("%.2f.%d", version, patchVersion) } - return fmt.Sprintf("%.2g", version) + return fmt.Sprintf("%.2f", version) } |