summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions
Commit message (Collapse)AuthorAge
* images: Add option for vertical alignment to images.TextPranshu Gaba10 days
| | | | | | | | | | | | | | | | | | | | Add option ``aligny`` to specify the vertical alignment of the text with respect to the ``y`` offset from the top of the image. Possible values of ``aligny`` are ``top`` (default), ``center``, and ``bottom``. The height of the block of text is measured from the top of the first line to the baseline of the last line. - ``top``: (Current behaviour) The top of the first line of the block of text is at an offset of ``y`` from the top of the image. - ``center``: The vertical center of the block of text is at an offset of ``y`` from the top of the image. - ``bottom``: The baseline of the last line of the text is at an offset of ``y`` from the top of the image. Resolves #13414
* Merge commit 'b3d87dd0fd746f07f9afa6e6a2969aea41da6a38'Bjørn Erik Pedersen10 days
|
* Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'Bjørn Erik Pedersen2025-04-10
|
* js/esbuild: Add drop optionBjørn Erik Pedersen2025-02-13
| | | | Fixes #13362
* Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'Bjørn Erik Pedersen2025-02-13
|
* Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'Bjørn Erik Pedersen2025-01-23
|
* tpl/images: Change signature of images.QR to images.QR TEXT OPTIONSJoe Mooring2025-01-08
| | | | Closes #13230
* images.Text: Add "alignx" option for horizontal alignmentJulius Künzel2025-01-08
| | | | | | Add an "alignx" option to the images.Text to control whether the value of the "x" option is the left border of the text (current behaviour), the center of each line or the right border. Fixes #10849
* Merge commit 'e9fbadacc3f09191e2e19f112a49777eeb8df06c'Bjørn Erik Pedersen2025-01-06
|
* tpl/images: Add images.QR functionJoe Mooring2025-01-06
| | | | Closes #13205
* Merge commit 'e477373487abcccdbed95688e37aa74b9b8fc198'Bjørn Erik Pedersen2024-12-11
|
* dartsass: Add silenceDeprecations optionBjørn Erik Pedersen2024-11-18
| | | | Fixes #13045
* Merge commit '838bd312b1a287bb33962ad478dbc54737654f35'Bjørn Erik Pedersen2024-11-18
|
* Merge commit 'de0df119b504a91c9e1f442b07954f366ffb2932'Bjørn Erik Pedersen2024-11-13
|
* Merge commit 'dec8cd4ada29218971743333f8ac662a9c06aad8'Bjørn Erik Pedersen2024-09-01
|
* tpl/transform: Make Plainify and ToMath return template.HTMLBjørn Erik Pedersen2024-08-11
| | | | | | | | None of these are useful as plain strings in the templates, which forces the users to do `transform.Plainify "foo" | safeHTML`. If people have trust issues with the output of these functions, they need to just stop using them. Closes #8732
* Merge commit 'a6e635ca7d905d9ec3ffd708db2694f680b03aae'Bjørn Erik Pedersen2024-08-09
|
* math: Add trigonometric functions and some angle helper functionsraoulb2024-07-29
| | | | | | | | | | | | | | | | This commit adds these new template functions in the `math` namespace: math.Acos math.Asin math.Atan math.Atan2 math.Cos math.Pi math.Sin math.Tan math.ToDegrees math.ToRadians Co-authored-by: Joe Mooring <joe@mooring.com>
* Merge commit '8b9803425e63e1b1801f8d5d676e96368d706722'Bjørn Erik Pedersen2024-06-21
|
* js: Support JSX and JSXImportSourceOptionsBenjamin Altpeter2024-02-23
| | | | Fixes #12118
* Merge commit '2658a71e1b6fe24a8b754a62ce0398a09d270d86'Bjørn Erik Pedersen2024-02-19
|
* Add images.Dither filterJoe Mooring2024-02-11
| | | | Closes #8598
* Merge commit '6efb279bfacbd7304cef994be8181c6f804e7dd4'Bjørn Erik Pedersen2024-02-07
|
* Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'Bjørn Erik Pedersen2024-01-27
| | | | | | | | ``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
* docs: Prepare for new sub treeBjørn Erik Pedersen2024-01-27
| | | | See #11925
* Merge commit '7125ad401ad043e46262afc7eca8dceb6d54bb9e'Bjørn Erik Pedersen2024-01-26
|
* parser/metadecoders: Add CSV lazyQuotes option to transform.UnmarshalJoe Mooring2024-01-16
| | | | | | | If true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. It defaults to false. Closes #11884
* tpl/math: Add math.Rand template functionJoe Mooring2023-12-29
| | | | Closes #11833
* resources/images: Create AutoOrient image filterJoe Mooring2023-12-20
| | | | Closes #11717
* docs: Adjust last merge from docs repositoryJoe Mooring2023-12-04
|
* Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'Bjørn Erik Pedersen2023-12-04
|
* tpl/transform: Add transform.XMLEscape template functionJoe Mooring2023-11-27
| | | | Fixes #3268
* Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'Bjørn Erik Pedersen2023-10-29
|
* resources/images: Create padding image filterJoe Mooring2023-10-29
| | | | Closes #11599
* Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'Bjørn Erik Pedersen2023-10-20
|
* common/hugo: Add hugo.IsServer and hugo.IsDevelopmentJoe Mooring2023-10-06
| | | | | | And deprecate site.IsServer. Closes #11510
* docs: Even more about images.ProcessBjørn Erik Pedersen2023-09-24
|
* docs: More about images.ProcessBjørn Erik Pedersen2023-09-24
|
* Add images.Process filterBjørn Erik Pedersen2023-09-24
| | | | | | | | | | | | | | | | | | This allows for constructs like: ``` {{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg q30 resize 200x") }} {{ $img = $img | images.Filter $filters }} ``` Note that the `action` option in `images.Process` is optional (`resize` in the example above), so you can use the above to just set the target format, e.g.: ``` {{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg") }} {{ $img = $img | images.Filter $filters }} ``` Fixes #8439
* Add images.Opacity filterBjørn Erik Pedersen2023-09-22
| | | | Fixes #11471
* Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'Bjørn Erik Pedersen2023-08-30
|
* Merge commit '7c62d6ef1654c0383eae474d3bd9ddf7754c1f30'Bjørn Erik Pedersen2023-08-07
|
* Update where.mdBjørn Erik Pedersen2023-07-29
|
* docs: Update whereBjørn Erik Pedersen2023-07-29
| | | Go doesn't use the RE2 (C++) library, it's a pure Go implementation.
* docs: Update where function operatorsJoe Mooring2023-07-29
| | | | Related to #11281
* Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'Bjørn Erik Pedersen2023-07-29
|
* Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'Bjørn Erik Pedersen2023-06-13
|
* Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'Bjørn Erik Pedersen2023-05-27
|
* Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'Bjørn Erik Pedersen2023-05-22
|
* tpl/urls: Return empty string when JoinPath has zero argsJoe Mooring2023-05-20
|