summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-05-31releaser: Bump versions for release of 0.100.0v0.100.0hugoreleaser
[ci skip]
2022-05-31releaser: Add release notes for 0.100.0hugoreleaser
[ci skip]
2022-05-31docs: Regen CLI docsBjørn Erik Pedersen
2022-05-31docs: Regen docs helperBjørn Erik Pedersen
2022-05-31Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'Bjørn Erik Pedersen
2022-05-31Squashed 'docs/' changes from 2d9da3a56..96fdc246cBjørn Erik Pedersen
96fdc246c Fix outdated i18n warnings flag mention on the multilingual page 39d197345 netlify: Hugo 0.99.1 fafd5070e Typo: Vriables > Variables 348c4e237 Update postcss.md 924fa76b6 netlify: Hugo 0.99.0 bb3f02ac1 Merge branch 'tempv0.99.0' bdd0b6eaf Update usage.md f562ff99d postcss: Fix import error handling 5d73f215f docs: Regen CLI docs git-subtree-dir: docs git-subtree-split: 96fdc246cc901a4c4ce6a28bab681fda2cff355b
2022-05-31Fix indentation in highlight shortcodeBjørn Erik Pedersen
This commit adds a new `.InnerDeindent` method to the shortcode context, which is `.Inner` with any indendation removed. This is then used in the built-in `highlight` shortcode to prevent the extra whitespace getting hightlighted. Fixes #4717
2022-05-30Make .RenderString render shortcodesBjørn Erik Pedersen
Fixes #6703
2022-05-30Improve shortcode indentation handlingBjørn Erik Pedersen
* Record the leading whitespace (tabs, spaces) before the shortcode when parsing the page. * Apply that indentation to the rendered result of shortcodes without inner content (where the user will apply indentation). Fixes #9946
2022-05-30Add Markdown as an output formatBjørn Erik Pedersen
The motivation behind this is not to make it easier to publish Markdown files, as that sounds unusual. This is mainly meant for shortcodes that produces Markdown to be inlined. You would do this by creating shortcodes with `*.md` suffix (e.g. `layouts/shortcodes/myshortcode.md`). This output format is defined as plain text, and will use Go's much more lenient text template parser. Updates #9821
2022-05-30build(deps): bump github.com/evanw/esbuild from 0.14.39 to 0.14.42dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.39 to 0.14.42. - [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.14.39...v0.14.42) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-29Run go mod tidyBjørn Erik Pedersen
2022-05-29Add a shortcode benchmarkBjørn Erik Pedersen
2022-05-29Remove Blackfriday markdown engineBjørn Erik Pedersen
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. Closes #9934
2022-05-28Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itselfBjørn Erik Pedersen
There may be sites in the wild that depends on the faulty behaviour of IsDescendant/IsAncestor when comparing to itself, but * The documentation and common sense says that a thing cannot be descendant or ancestor to itself. * The bug introduced in `HasMenuCurrent` comes directly from that confusion. Fixes #9846
2022-05-27build(deps): bump github.com/sanity-io/litter from 1.5.4 to 1.5.5dependabot[bot]
Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter) from 1.5.4 to 1.5.5. - [Release notes](https://github.com/sanity-io/litter/releases) - [Changelog](https://github.com/sanity-io/litter/blob/main/CHANGELOG.md) - [Commits](https://github.com/sanity-io/litter/compare/v1.5.4...v1.5.5) --- updated-dependencies: - dependency-name: github.com/sanity-io/litter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27deps: Update to github.com/tdewolff/minify/v2 v2.11.5Bjørn Erik Pedersen
2022-05-27Don't use the baseURL /path as part of the resource cache keyBjørn Erik Pedersen
As that prevents Hugo projects with sub paths in their `baseURL` to use themes with cached resources. Fixes #9787
2022-05-27postcss: Make the resource cache key more stableBjørn Erik Pedersen
By using the input map as the basis, which means the hash will not change if we add/rename/remove options. This happened in Hugo 0.99, as we added a new options. This is unortunate. Unfortunately this means that the cache keys for PostCSS will change one more time in 0.100, but will be stable going forward. Note that we have implemented this pattern in all the other resource transformers. Updates #9787
2022-05-27commands: Fix case where languages cannot be configuredBjørn Erik Pedersen
There are some commands that needs to complete without a complete configuration.
2022-05-27github: Set HUGO_BUILD_TAGS: extended when running testsBjørn Erik Pedersen
Also fix TestDecodeConfig/Basic which started to fail in the extended build in 0.99.1. Closes #9935
2022-05-26metrics: Fix divide by zero errorCameron Moore
Under certain conditions, `howSimilarString` could reach a divide-by- zero situation which causes bogus values to print in the cache potential column of the template hints output. This situation essentially causes a `int(math.NaN())` value to be returned and hilarity ensues thereafter.
2022-05-25Fix error message when PostCSS config file is not foundBjørn Erik Pedersen
Fixes #9927
2022-05-25server: Skip watching dirs in ignoreFilesBjørn Erik Pedersen
Fixes #9838
2022-05-25resources: Improve error message on .Resize etc. on SVGsBjørn Erik Pedersen
Fixes #9875
2022-05-25Fix Plainify edge casesBjørn Erik Pedersen
This commit replaces the main part of `helpers.StripHTML` with Go's implementation in its html/template package. It's a little slower, but correctness is more important: ```bash BenchmarkStripHTMLOld-10 680316 1764 ns/op 728 B/op 4 allocs/op BenchmarkStripHTMLNew-10 384520 3099 ns/op 2089 B/op 10 allocs/op ``` Fixes #9199 Fixes #9909 Closes #9410
2022-05-25Add resources.CopyBjørn Erik Pedersen
Implemented by most Resource objects, but not Page (for now). Fixes #9313
2022-05-24basefs: add `noBuildLock` flagsatotake
If the flag is enabled, `.hugo_build.lock` will not be created. This ensures safe running on read-only filesystem etc. Close #9780
2022-05-21import: Fix importing jekyll sitesatotake
Just use `afero.OsFs` without building site. Close #9817
2022-05-18releaser: Prepare repository for 0.100.0-DEVhugoreleaser
[ci skip]
2022-05-18releaser: Bump versions for release of 0.99.1v0.99.1hugoreleaser
[ci skip]
2022-05-18releaser: Add release notes for 0.99.1hugoreleaser
[ci skip]
2022-05-18releaser: Fix version replacementBjørn Erik Pedersen
2022-05-18server: Fix multihost crashBjørn Erik Pedersen
As introduced in v0.99.0. Fixes #9901
2022-05-17Update stale.ymlBjørn Erik Pedersen
2022-05-16common/hugo: Fix version logichugoreleaser
[ci skip]
2022-05-16releaser: Bump versions for release of 0.99.0v0.99.0hugoreleaser
[ci skip]
2022-05-16releaser: Add release notes for 0.99.0hugoreleaser
[ci skip]
2022-05-16server: Refresh the error templateBjørn Erik Pedersen
We cannot cache it forever, as that will not allow the end user to edit and preview it.
2022-05-15server: Fix SIGINT handling after loading bad configurationBjørn Erik Pedersen
Also fix the config error messages. Fixes #9664
2022-05-15Improve SASS errorsBjørn Erik Pedersen
Fixes #9897
2022-05-15postcss: Fix import error handlingBjørn Erik Pedersen
Note that we will now fail if `inlineImports` is enabled and we cannot resolve an import. You can work around this by either: * Use url imports or imports with media queries. * Set `skipInlineImportsNotFound=true` in the options Also get the argument order in the different NewFileError* funcs in line. Fixes #9895
2022-05-14build(deps): bump github.com/fsnotify/fsnotify from 1.5.3 to 1.5.4dependabot[bot]
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify) from 1.5.3 to 1.5.4. - [Release notes](https://github.com/fsnotify/fsnotify/releases) - [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md) - [Commits](https://github.com/fsnotify/fsnotify/compare/v1.5.3...v1.5.4) --- updated-dependencies: - dependency-name: github.com/fsnotify/fsnotify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-14common/herrors: Remove unused structBjørn Erik Pedersen
2022-05-14build(deps): bump github.com/evanw/esbuild from 0.14.38 to 0.14.39dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.38 to 0.14.39. - [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.14.38...v0.14.39) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-14errors: Misc improvementsBjørn Erik Pedersen
* Redo the server error template * Always add the content file context if relevant * Remove some now superflous error string matching * Move the server error template to _server/error.html * Add file context (with position) to codeblock render blocks * Improve JS build errors Fixes #9892 Fixes #9891 Fixes #9893
2022-05-14server: Always rebuild the files involved in an errorBjørn Erik Pedersen
Fixes #9884
2022-05-14postcss: Fix line numbers in error messagesBjørn Erik Pedersen
Fixes #9880
2022-05-13Update CONTRIBUTING.mdBjørn Erik Pedersen
Add some info about commit subject prefixes.
2022-05-13js: Bump test dependencyBjørn Erik Pedersen
To work around a cache issue.