Spread the word:
Awesome stuff. I have a Docker image updated: https://hub.docker.com/r/felicianotech/docker-hugo/
I love how frequent we’re seeing releases with improvements. Very motivating.
Also, is the Twitter profile photo suppose to be cut off like that?
That is Twitters work, but we should do something about the proportions; with the new Hugo site coming, we get a blog that we can post these release notes and can get better control of it all.
Good news !
I have release the rpm package for 0.21 : https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/
Another great release!
Out of curiosity, why does the
NumFmt function has to be prefixed with
lang? (As opposed to other language-sensitive functions, like
I initially thought
lang stands for language, but changing the default language (with
config.toml) has no impact on the default output of the
NumFmt function. (I switched from a language that prints large numbers like this: 10,000.34 to one that uses 10.000,34).
lang namespace requirement for the
NumFmt function got me a bit confused here!
We had to get some order into the template funcs – we have so many now, so we created namespaces. Most template funcs have aliases (
where), but we decided to just let
lang.NumFmt live without it. All of this will make it easier to test, document etc. – and we can just add more as needed without too much worry. And when we have just wrapped existing Go funcs, we have in many cases kept the exact name (including the Go package), i.e.
Ah I see, thanks for clarifying.
From a usability standpoint for new users and to lessen the learning curve, would it be an idea to add an alias for
NumFmt too? (
That keeps the function naming consistent, and gives less to document.
It might also remove the suggestion that
lang is an object and
lang is related to the
.Language template variables, or Hugo’s multilingual mode.