mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
e197c7b29d
To sort an image's colors from darkest to lightest, you can then do: ```handlebars {{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }} ``` This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance Fixes #10450 |
||
---|---|---|
.. | ||
collections | ||
constants | ||
hcontext | ||
herrors | ||
hexec | ||
hreflect | ||
hstrings | ||
htime | ||
hugio | ||
hugo | ||
loggers | ||
maps | ||
math | ||
para | ||
paths | ||
predicate | ||
rungroup | ||
terminal | ||
text | ||
types | ||
urls | ||
docs.go |