aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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] <[email protected]>
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]
2022-12-06releaser: Bump versions for release of 0.108.0v0.108.0hugoreleaser
[ci skip]
2022-12-06Make the hugo env non verbose output slightly more verboseBjørn Erik Pedersen
This is how it may look like with a extended build: ``` hugo v0.107.0-6445b1e9ff963b07c55d9d69cb9abef8ef21fc5d+extended darwin/arm64 BuildDate=2022-12-06T11:21:50Z GOOS="darwin" GOARCH="arm64" GOVERSION="go1.19.3" github.com/sass/libsass="3.6.5" github.com/webmproject/libwebp="v1.2.4" github.com/sass/dart-sass-embedded/protocol="1.1.0" github.com/sass/dart-sass-embedded/compiler="1.56.1" github.com/sass/dart-sass-embedded/implementation="1.56.1" ```
2022-12-06Add dart-sass-embedded version info to hugo env -vBjørn Erik Pedersen
``` ~ ❯❯❯ hugo env -v | grep dart github.com/bep/godartsass="v0.16.0" github.com/sass/dart-sass-embedded/compiler="1.56.1" github.com/sass/dart-sass-embedded/implementation="1.56.1" github.com/sass/dart-sass-embedded/protocol="1.1.0" ```
2022-12-06deps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0Bjørn Erik Pedersen
2022-12-06tpl/embedded: Make Open Graph's series optionalRazon Yang
2022-12-06Squashed 'docs/' changes from 4c1309cdf..2201ac0e5Bjørn Erik Pedersen
2201ac0e5 Update theme git-subtree-dir: docs git-subtree-split: 2201ac0e5fa47400ecd182e28af823e0f03ed05b
2022-12-06Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'Bjørn Erik Pedersen
2022-12-06common/hugio: Fix multiWriteCloser.CloseBjørn Erik Pedersen
Fixes #10505
2022-12-06build(deps): bump github.com/getkin/kin-openapi from 0.109.0 to 0.110.0dependabot[bot]
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.109.0 to 0.110.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.com/getkin/kin-openapi/compare/v0.109.0...v0.110.0) --- updated-dependencies: - dependency-name: github.com/getkin/kin-openapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
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-05github: Update Dart Sass Embedded to 1.56.1Bjørn Erik Pedersen
2022-12-05markup/goldmark: Add removeSurroundingParagraph for Markdown imagesBjørn Erik Pedersen
* Removes any surrounding paragraph nodes * And transfers any attributes from the surrounding paragraph down to the image node * Adds IsBlock and Ordinal (zero based) field to the image context passed to the image render hooks IsBlock is set to true if `wrapStandAloneImageWithinParagraph = false` and the image's parent node has only one child. Closes #8362 Fixes #10492 Fixes #10494 Fixes #10501
2022-12-05build(deps): bump github.com/evanw/esbuild from 0.15.16 to 0.15.18dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.15.16 to 0.15.18. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.15.16...v0.15.18) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>