summaryrefslogtreecommitdiffstats
path: root/docs/content
AgeCommit message (Collapse)Author
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
2022-12-19modules: Adjust watch logic vs workspace use definitionsBjørn Erik Pedersen
2022-12-05docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.Bjørn Erik Pedersen
See #10492
2022-12-05dartsass: Add sourceMapIncludeSources optionBjørn Erik Pedersen
2022-12-02Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'Bjørn Erik Pedersen
2022-11-17docs: Regen CLI docsBjørn Erik Pedersen
2022-11-17Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'Bjørn Erik Pedersen
2022-10-24tpl/encoding: Add noHTMLEscape option to jsonifyBjørn Erik Pedersen
2022-10-14Don't use self-closing generator tagJB
2022-09-22docs: Regenerate CLI docsBjørn Erik Pedersen
2022-09-22resources/images: Add $image.ColorsBjørn Erik Pedersen
Which returns the most dominant colors of an image using a simple histogram method. Fixes #10307
2022-09-14server: Add 404 supportBjørn Erik Pedersen
2022-09-13Merge commit '90ad8045056167004d27857a95542936657b8a16'Bjørn Erik Pedersen
2022-06-28Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'Bjørn Erik Pedersen
2022-06-16Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'Bjørn Erik Pedersen
2022-06-14common: Add hugo.GoVersionKhayyam Saleem
Closes #9849. This enables `hugo.GoVersion` in templates to access the version of Go that the Hugo binary was built with.
2022-06-13resources/page: Add :slugorfilename attributeDawid Potocki
Fixes #4739, #385