What would it take to add to Hugo’s templates the ability to calculate square roots?
We already have basic arithmetic (add
, mul
, etc.) and some other Go functions (math.Floor
, math.Round
, etc.).
Why would I want to calculate square roots? Because I’m trying to display a group of differently-shaped images so that they all take up the same area on the screen. See MathCentral for the formula.
So I’d like to be able to use math.Sqrt
in my shortcode. Any chance of adding it?