summaryrefslogtreecommitdiffstats
path: root/docs/content
AgeCommit message (Collapse)Author
2023-09-24docs: More about images.ProcessBjørn Erik Pedersen
2023-09-24Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'Bjørn Erik Pedersen
2023-09-24Add images.Process filterBjørn Erik Pedersen
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
2023-09-24Add $image.ProcessBjørn Erik Pedersen
Which supports all the existing actions: resize, crop, fit, fill. But it also allows plain format conversions: ``` {{ $img = $img.Process "webp" }} ``` Which will be a simple re-encoding of the source image. Fixes #11483
2023-09-22Add images.Opacity filterBjørn Erik Pedersen
Fixes #11471
2023-08-30Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'Bjørn Erik Pedersen
2023-08-07Add all config to docshelper.jsonBjørn Erik Pedersen
Also consolidate so the mediaTypes and outputFormats are listed once only. Fixes #11328
2023-08-07Merge commit '7c62d6ef1654c0383eae474d3bd9ddf7754c1f30'Bjørn Erik Pedersen
2023-07-30docs: Regenerate CLI docsBjørn Erik Pedersen
2023-07-29Update where.mdBjørn Erik Pedersen
2023-07-29docs: Update whereBjørn Erik Pedersen
Go doesn't use the RE2 (C++) library, it's a pure Go implementation.
2023-07-29docs: Update where function operatorsJoe Mooring
Related to #11281
2023-07-29docs: Rework the cacheDir documentationBjørn Erik Pedersen
2023-07-29Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'Bjørn Erik Pedersen
2023-07-05Add titleCaseStyle none and firstupperBjørn Erik Pedersen
Fixes #11204
2023-06-27docs: Update permalinks documentationJoe Mooring
See #8523 See #10847
2023-06-19docs: Regen CLI docsBjørn Erik Pedersen
2023-06-13Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'Bjørn Erik Pedersen
2023-06-12cache: Set default cache path based on $USERErica Mays
Change the default cache directory to `$TMPDIR/hugo_cache_$USER`, so that multi-user systems do not have caches that interfere with each other. The other cache-choosing logic (e.g. Netlify exceptions, configuration options) are not affected. Fixes #7391
2023-06-05docs: Regenerate CLI docsBjørn Erik Pedersen
2023-06-01docs: Regenerate CLI docsBjørn Erik Pedersen
2023-06-01Merge commit 'dfb1895e4b82b2249d9baaed37ac7ae5e855a126'Bjørn Erik Pedersen
2023-05-28docs: Regenerate CLI docsBjørn Erik Pedersen
2023-05-27docs: Regen CLI docsBjørn Erik Pedersen
2023-05-27Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'Bjørn Erik Pedersen
2023-05-22docs: Regen CLI docsBjørn Erik Pedersen
2023-05-22Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'Bjørn Erik Pedersen
2023-05-21tpl/tplimpl: Add img loading attribute to figure shortcode (#10927)InLaw
2023-05-20tpl/urls: Return empty string when JoinPath has zero argsJoe Mooring
2023-05-19tpl/urls: Add JoinPath template functionJoe Mooring
See https://pkg.go.dev/net/url#JoinPath Closes #9694
2023-05-16tpl: Add math.AbsOleksandr Redko
Fixes #10941.
2023-05-06Revert "Update syntax-highlighting.md (#10929)" (#10930)Joe Mooring
This reverts commit a4fb8dc6bc4358ca5c307e1af4a50fee2a0c4c12.
2023-05-06Update syntax-highlighting.md (#10929)Kirill Bobyrev
2023-03-12docs: Improve examples of variadic math functionsJoe Mooring
2023-03-11tpl/math: Allow multi numbers in add, sub, mul, div, min and maxsepts
2023-03-08tpl: Add hasSuffix aliasJonathan Fisher
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Completes https://github.com/gohugoio/hugo/issues/10474
2023-03-07switch transfers to workersdavidejones
2023-03-07customize parallel transfer countdavidejones
2023-03-01Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'Bjørn Erik Pedersen
2023-02-23related: Add config option cardinalityThresholdBjørn Erik Pedersen
Fixes #10744
2023-02-23 docs: Another fix related docs exampleBjørn Erik Pedersen
2023-02-23docs: Fix related docs exampleBjørn Erik Pedersen
2023-02-23Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'Bjørn Erik Pedersen
2023-02-21Add page fragments support to RelatedBjørn Erik Pedersen
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`. You can do this by: * Configure one or more indices with type `fragments` * The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link page<->fragment and page<->page. * This also will index all the fragments (heading identifiers) of the pages. It's also possible to use type `fragments` indices in shortcode, e.g.: ``` {{ $related := site.RegularPages.Related .Page }} ``` But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts. This commit also: * Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with index type `fragments` and `enableFilter` set to true. * Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument. * Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will soon become usefil, e.g. in #9339. Closes #10711 Updates #9339 Updates #10725
2023-01-17dos: Regen CLI docsBjørn Erik Pedersen
2023-01-17Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'Bjørn Erik Pedersen
2023-01-16Add fill HTTP Response info into .Data in resources.GetRemoteBjørn Erik Pedersen
See #10604
2022-12-23resource/page: Add Page.AncestorsSepts
Fixes #10567
2022-12-22Add HUGO_PUBLISHDIR to the Node environmentBjørn Erik Pedersen
So you can do `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes its files. Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode. If you write to this folder from PostCSS when running the server, you could run the server with one of these flags: ``` hugo server --renderToDisk hugo server --renderStaticToDisk ``` Fixes #10554
2022-12-20Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'Bjørn Erik Pedersen