summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-01-16Add fill HTTP Response info into .Data in resources.GetRemoteBjørn Erik Pedersen
See #10604
2023-01-16Fix HEAD method in resources.GetRemoteBjørn Erik Pedersen
Fixes #10604
2023-01-16Fix order when reading custom headers in resources.GetRemoteBjørn Erik Pedersen
Fixes #10616
2023-01-16deps: Upgrade github.com/evanw/esbuild v0.15.18 => v0.17.0Bjørn Erik Pedersen
Also add a test to make sure legal comments are preserved in JS bundles. Closes #10536
2023-01-09Update README.mdBjørn Erik Pedersen
2023-01-07resource: Fix Go Doc vs .Data.IntegrityBjørn Erik Pedersen
2023-01-04Misc doc, code refactoring to improve documentationBjørn Erik Pedersen
2023-01-04Make readFile return nil when file not found (note)Bjørn Erik Pedersen
Fixes #9620
2023-01-03Remove reference to Goreleaser in code commentOmar Kohl
Hugo no longer uses the Goreleaser tool.
2023-01-02tpl/compare: Sort special float values as stringacclassic
When sorting strings a worng order is returned. This happens because the strings are first converted to floating values to check whether or not they should be sorted as floating values. When an error is returned the strings will be handled as string literals. No error will be returned when parsing Inf, Infinity or NaN (case insensitive) because they will be coverted to special floating point values and therefore are legal float values. Now we check if the returned converted values are special floating values and treat them as string literals. Fixes #10389
2022-12-25tpl/diagrams: Move Goat to its own fileBjørn Erik Pedersen
2022-12-24Update CONTRIBUTING.mdBjørn Erik Pedersen
2022-12-24Update CONTRIBUTING.mdBjørn Erik Pedersen
2022-12-24Update README.mdBjørn Erik Pedersen
2022-12-23releaser: Prepare repository for 0.110.0-DEVrelease-0.109.0hugoreleaser
[ci skip]
2022-12-23releaser: Bump versions for release of 0.109.0v0.109.0hugoreleaser
[ci skip]
2022-12-23Adjust "you need the extended version" error messageBjørn Erik Pedersen
2022-12-23docs: Regen docs helper JSONBjørn Erik Pedersen
2022-12-23resource/page: Slight adjustment of Page.AncestorsBjørn Erik Pedersen
Fixes #10567
2022-12-23resource/page: Add Page.AncestorsSepts
Fixes #10567
2022-12-23build(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0dependabot[bot]
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.3.0 to 0.4.0. - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.3.0...v0.4.0) --- updated-dependencies: - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-12-22Annotate test assertionsJoe Mooring
2022-12-22hugolib: Exclude non-linkable pages from translations mapJoe Mooring
Fixes #9073
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-22Revert "tpl/tplimpl: Use https in sitemap templates"Joe Mooring
This reverts commit 3fd0b78498597ceb343b7fda2e9b652f3e957478.
2022-12-21tpl: Improve template funcs GoDocBjørn Erik Pedersen
2022-12-21tpl/resources: Fix data race in ToCSSBjørn Erik Pedersen
Fixes #10542
2022-12-21tocss: Add some more test casesBjørn Erik Pedersen
See #10555
2022-12-21tocss: Fix unquote case with double quotesSepts
See #10555
2022-12-21Allow "fast render mode" even if --disableLiveReload is setBjørn Erik Pedersen
Fixes #10561
2022-12-20tocss: Add vars optionBjørn Erik Pedersen
This commit adds a new `vars` option to both the Sass transpilers (Dart Sass and Libsass). This means that you can pass a map with key/value pairs to the transpiler: ```handlebars {{ $vars := dict "$color1" "blue" "$color2" "green" "$font_size" "24px" }} {{ $cssOpts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }} {{ $r := resources.Get "scss/main.scss" | toCSS $cssOpts }} ``` And the the variables will be available in the `hugo:vars` namespace. Example usage for Dart Sass: ```scss @use "hugo:vars" as v; p { color: v.$color1; font-size: v.$font_size; } ``` Note that Libsass does not support the `use` keyword, so you need to `import` them as global variables: ```scss @import "hugo:vars"; p { color: $color1; font-size: $font_size; } ``` Hugo will: * Add a missing leading `$` for the variable names if needed. * Wrap the values in `unquote('VALUE')` (Sass built-in) to get proper handling of identifiers vs other strings. This means that you can pull variables directly from e.g. the site config: ```toml [params] [params.sassvars] color1 = "blue" color2 = "green" font_size = "24px" image = "images/hero.jpg" ``` ```handlebars {{ $vars := site.Params.sassvars}} {{ $cssOpts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }} {{ $r := resources.Get "scss/main.scss" | toCSS $cssOpts }} ``` Fixes #10555
2022-12-20Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'Bjørn Erik Pedersen
2022-12-20Squashed 'docs/' changes from 2201ac0e5..2c0125b52Bjørn Erik Pedersen
2c0125b52 Remove .Site.Author 2cf8841b3 Update partialCached.md (#1924) 385487191 Update data-templates.md (#1926) ce207e141 Remove redundant markdown and fix a few typos (#1936) 3687c2953 Make heading id linkable, take 2 45c79bea7 Make heading id linkable b22079344 Delete duplicates the lines 557-569 and 570-582. (#1934) 0a90dc122 Rework the taxonomy variables page (#1935) 7f8979c50 Update theme 26e682a3a Update multilingual.md d40e7693f Update postcss.md 375d75c01 Update postcss npm instructions (#1931) 63020094a Emphasize Window shell selection (#1930) 56824be2c Update configuration.md b7b8f16b3 Docu 'Theme components': minor fix (#1929) 09dc81a05 Remove Docker from BSD page (#1927) 205fea204 netlify: Hugo 0.108.0 6abe49c28 Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc' 12b59a4c5 docs: Add basic doc for wrapStandAloneImageWithinParagraph etc. ba07bd970 dartsass: Add sourceMapIncludeSources option git-subtree-dir: docs git-subtree-split: 2c0125b5290494d49334606c451446ebd9df3c21
2022-12-20modules: Improve "module workspace" not found errorBjørn Erik Pedersen
2022-12-19modules: Adjust watch logic vs workspace use definitionsBjørn Erik Pedersen
2022-12-19Add any configured Go Workspace file to the config watcherBjørn Erik Pedersen
Fixes #10556
2022-12-19modules: Make the module.workspace=off as default (note)Bjørn Erik Pedersen
Also, resolve any workspace file relative to the workingDir. Fixes #10553
2022-12-19release: Add a note section in release notesBjørn Erik Pedersen
2022-12-19helpers: Allow at signs in UnicodeSanitize (note)Joe Mooring
Closes #10548
2022-12-14parser/metadecoders: Remove superflous cast in testBjørn Erik Pedersen
2022-12-14parser/metadecoders: Simplify nil check in UnmarshalBjørn Erik Pedersen
2022-12-14parser/metadecoders: Add empty /data JSON file as empty mapAcClassic
When fetching JSON files from the /data folder that are empty they will be added as empty map[string]any. This makes sure that no empty JSON file causes the site to crash because of a failed unmarshal. This happens because empty is not a valid JSON string. It is therefore important to check the lenght of the data before passing it to the JSON unmarshal function. Fixes #8601
2022-12-14Also consider wrapped errors when checking for file IsNotExist errorsBjørn Erik Pedersen
Fixes #10534
2022-12-14tpl/openapi3: Wrap *kopenapi3.TBjørn Erik Pedersen
To make it easier to document.
2022-12-13resources/js: Fix some import discrepancies between Hugo and ESBuildBjørn Erik Pedersen
This fixes the cases where ```js import 'imp2/index.js'; import 'imp3/foo.js'; ``` And these files lives in `assets` as: ``` imp2/index.ts imp3/foo.ts ``` Fixes #10527
2022-12-13github: Update to Dart Sass 1.56.2Bjørn Erik Pedersen
2022-12-11github: Use ruby/setup-rubyBjørn Erik Pedersen
Closes #10517
2022-12-11tpl/tplimpl: Use https in sitemap templatesJoe Mooring
Closes #10515
2022-12-10parser/metadecoders: Fix spellingFrancesco La Camera
2022-12-06releaser: Prepare repository for 0.109.0-DEVrelease-0.108.0hugoreleaser
[ci skip]