summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-09-01releaser: Bump versions for release of 0.102.3v0.102.3hugoreleaser
[ci skip]
2022-09-01Fix shortcode parser regression with quoted param valuesBjørn Erik Pedersen
This issue was introduced in `v0.102.0`. In 223bf2800488ad5d38854bbb595d789bc35ebe32 we removed the byte source from the parsed page result, which meant we had to preserve exact positioning for all elements. This introduced some new `TypeIgnore` tokens which we, wrongly, assumed didn't matter where we put in the result slice (they should be ignored anyway). But it seems that this broke the logic where we determine if it's positional or named params in the case where the paramater value contains escaped quoutes. This commit makes sure that these ignore tokens (the back slashes) are never sent back to the client, which is how it was before `v0.102.0`. This commit also fixes some lost error information in that same commit. Fixes #10236
2022-08-31deps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1Joe Mooring
Fixes #10230
2022-08-30snap: Use "snapcraftctl set-grade"Anthony Fok
This, together with 'snapcraftctl set-version", negates the need to modify snap/snapcraft.yaml upon each release, so the corresponding code is removed from releaser/releaser.go. Also, vendorInfo is extended to include the snap version number. See #10225
2022-08-29snap: Use "snapcraftctl set-version"Anthony Fok
This allows the use of "git describe --tags" to recognize lightweight version tags, and the removal of initial "v" in the hugo snap version. See #10225
2022-08-29snap: Make external dependencies actually workAnthony Fok
Git: - Set GIT_EXEC_PATH and include usr/lib/git-core so that git can find the git-remote-https helper (needed by e.g. "go mod download"). Go: - Put Go in its own snap part, and use stage-snaps instead of build-snaps so that it is included in the final snap. - Set GOCACHE to a writable directory. (In a previous commit, HOME is set to $SNAP_REAL_HOME which is unwritable.) Hugo: - Patch config/security/securityConfig.go "[security.exec] osEnv" whitelist (during snap build) so that external dependencies can use the required environment variables to run properly from within the snap. Asciidoctor: - Replace shebang line in asciidoctor so it can find the ruby executable. - Set RUBYLIB so that Ruby can find its libraries. Caveat/TODO: The Ruby version is hardcoded in our custom RUBYLIB. Embedded Dart Sass: - Download from GitHub and install it, for amd64 and arm64 only. Node.js: - Remove my incomplete include list so that npx is actually installed. - Set npm_config_{cache,init_module,userconfig} to writable locations. Pandoc: - Set pandoc_datadir so that Pandoc can find its data files. rst2html: - Install python3-docutils package for rst2html, rst2html5, etc. - Set PYTHONHOME so that Python can find its libraries. Note that asciidoctor, pandoc and rst2html are not in Hugo’s default "[security.exec] allow" whitelist, and the snap package does not change that default, so they still needed to be whitelisted manually in config.toml if necessary by the end user. Special thanks to Joe Mooring (@jmooring) for meticulously diagnosing the issue and providing a comprehensive test repository at https://github.com/jmooring/hugo-snap-test without which I would not have been able to understand and resolve the issue. Fixes #9078
2022-08-29release: Add the releaser commits to the ignore listBjørn Erik Pedersen
2022-08-29release: Fix the Deb archivesBjørn Erik Pedersen
Fixes #10220
2022-08-28releaser: Prepare repository for 0.103.0-DEVrelease-0.102.0hugoreleaser
[ci skip]
2022-08-28releaser: Bump versions for release of 0.102.0v0.102.0hugoreleaser
[ci skip]
2022-08-28Add linux/arm64 extended to release setupBjørn Erik Pedersen
Fixes #8257
2022-08-28license: Add copyright infoBjørn Erik Pedersen
Closes #10218
2022-08-28build(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0dependabot[bot]
Bumps [go.uber.org/atomic](https://github.com/uber-go/atomic) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/uber-go/atomic/releases) - [Changelog](https://github.com/uber-go/atomic/blob/master/CHANGELOG.md) - [Commits](https://github.com/uber-go/atomic/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: go.uber.org/atomic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26build(deps): bump github.com/kyokomi/emoji/v2 from 2.2.9 to 2.2.10dependabot[bot]
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji) from 2.2.9 to 2.2.10. - [Release notes](https://github.com/kyokomi/emoji/releases) - [Commits](https://github.com/kyokomi/emoji/compare/v2.2.9...v2.2.10) --- updated-dependencies: - dependency-name: github.com/kyokomi/emoji/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26build(deps): bump github.com/getkin/kin-openapi from 0.97.0 to 0.98.0dependabot[bot]
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.97.0 to 0.98.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.com/getkin/kin-openapi/compare/v0.97.0...v0.98.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] <support@github.com>
2022-08-26deps: Update github.com/pelletier/go-toml/v2 v2.0.2 => v2.0.4Bjørn Erik Pedersen
Closes #10210
2022-08-26build(deps): bump github.com/spf13/afero from 1.8.2 to 1.9.2dependabot[bot]
Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.8.2 to 1.9.2. - [Release notes](https://github.com/spf13/afero/releases) - [Commits](https://github.com/spf13/afero/compare/v1.8.2...v1.9.2) --- updated-dependencies: - dependency-name: github.com/spf13/afero dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26build(deps): bump github.com/tdewolff/parse/v2 from 2.6.1 to 2.6.2dependabot[bot]
Bumps [github.com/tdewolff/parse/v2](https://github.com/tdewolff/parse) from 2.6.1 to 2.6.2. - [Release notes](https://github.com/tdewolff/parse/releases) - [Commits](https://github.com/tdewolff/parse/compare/v2.6.1...v2.6.2) --- updated-dependencies: - dependency-name: github.com/tdewolff/parse/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-25build(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16dependabot[bot]
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.14 to 0.0.16. - [Release notes](https://github.com/mattn/go-isatty/releases) - [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16) --- updated-dependencies: - dependency-name: github.com/mattn/go-isatty dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23build(deps): bump github.com/rogpeppe/go-internal from 1.8.1 to 1.9.0dependabot[bot]
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal) from 1.8.1 to 1.9.0. - [Release notes](https://github.com/rogpeppe/go-internal/releases) - [Commits](https://github.com/rogpeppe/go-internal/compare/v1.8.1...v1.9.0) --- updated-dependencies: - dependency-name: github.com/rogpeppe/go-internal dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23build(deps): bump github.com/yuin/goldmark from 1.4.12 to 1.4.13dependabot[bot]
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.12 to 1.4.13. - [Release notes](https://github.com/yuin/goldmark/releases) - [Commits](https://github.com/yuin/goldmark/compare/v1.4.12...v1.4.13) --- updated-dependencies: - dependency-name: github.com/yuin/goldmark dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0dependabot[bot]
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.0) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23build(deps): bump github.com/tdewolff/minify/v2 from 2.11.10 to 2.12.0dependabot[bot]
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.11.10 to 2.12.0. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.11.10...v2.12.0) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22build(deps): bump github.com/evanw/esbuild from 0.14.43 to 0.15.5dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.43 to 0.15.5. - [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.43...v0.15.5) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22readme: Add Golang URL to Go linksReece Russell
2022-08-19Update README.mdBjørn Erik Pedersen
2022-08-19Update README.mdBjørn Erik Pedersen
2022-08-19Update README.mdBjørn Erik Pedersen
2022-08-14github: Use GitHub's Choco-Install function to retry installsAnthony Fok
Apparently, two instances of "choco install mingw" running simultaneously (for go-version 1.18.x and 1.19.x) would often cause at least one of them to fail to connect to SourceForge: ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/ray_linn/GCC-10.X-with-ada/GCC-10.2.0-crt-8.0.0-with-ada-20201019.7z/download'. Exception calling "GetResponse" with "0" argument(s): "The request was aborted: Could not create SSL/TLS secure channel." With Choco-Install however, it simply works every single time! Thanks to keymanapp/api.keyman.com#156 for the great tip! See the definition of the PowerShell Choco-Install function here: https://github.com/actions/runner-images/blob/main/images/win/scripts/ImageHelpers/ChocoHelpers.ps1
2022-08-13common/hugio: One more fix for non-OS fsBjørn Erik Pedersen
Note that these are only used with OS fs, so no practical bugs, but still-
2022-08-13common/hugio: Fix CopyDir when fs is not OSBjørn Erik Pedersen
2022-08-12snap: Delete obsolete custom x-nodejs pluginsAnthony Fok
2022-08-07livereload: Inject script without head or body tagsatotake
Currently, Hugo does not inject `livereload` script if html does not contain `<head>` or `<body>`. This sometimes happens if you create new sites without `theme` and it is hard to catch the cause soon. This PR: * Inject livereload script even if html does not include `<head>`, `<body>`, or `<html>` - Modern browsers execute scripts even if they are outside `<html>` - Some js frameworks (confirmed with vite) inject HRM script without `<html>` tag * Append warning script to html if `<head>` or `<body>` is not in html * Fix bug that livereload cannot be appended to the tags with attrs Close #10105
2022-08-03releaser: Fat MacOS binariesBjørn Erik Pedersen
Closes #9131
2022-08-03Update to Go 1.19Bjørn Erik Pedersen
Fixes #10145
2022-08-03markup/goldmark/codeblock: Fix attributes when no language identifier in ↵piyo
CodeBlock Fixes #10118
2022-08-01commands: Fix embed in livereload.go杨晴
2022-07-31Update README.mdBjørn Erik Pedersen
Updates #10136
2022-07-26Externalise and embed livereload.js stringTakeshi Sato
This is a small refactoring. `livereload/livereload.go` has a wide column. Sometimes language server does not work because of it. Create a new js file and embed it.
2022-07-13Cache when not found in LookupLayoutBjørn Erik Pedersen
Very visible when using the pprof mutex profiler. ```bash name old time/op new time/op delta Baseline-10 58.4ms ± 1% 51.6ms ± 0% -11.56% (p=0.029 n=4+4) name old alloc/op new alloc/op delta Baseline-10 64.3MB ± 0% 64.2MB ± 0% ~ (p=0.114 n=4+4) name old allocs/op new allocs/op delta Baseline-10 649k ± 0% 649k ± 0% ~ (p=0.229 n=4+4) ```
2022-07-09parser/pageparser: Don't store the byte slicesBjørn Erik Pedersen
On its own this change doesn't do any magic, but this is part of a bigger picture about making Hugo leaner in the memory usage department.
2022-06-30Make the baseline benchmark's test files stableBjørn Erik Pedersen
And add some assertions.
2022-06-28Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'Bjørn Erik Pedersen
2022-06-28Squashed 'docs/' changes from 30f32a624..e5aa641a6Bjørn Erik Pedersen
e5aa641a6 remove erroneous foo 8307b474e Add hl_inline to highlight function documentation 8517b02d9 update GitHub 404 docs URL to prevent redirect 5c52c2715 remove aerobatic.com 3eb179558 Update syntax-highlighting.md 00cbe3f2f Check for nil Chroma .Aliases 45416515e netlify: Hugo 0.101.0 d5dcd1581 docs: Regen docshelper 4785e99b1 common: Add hugo.GoVersion e679f1b7e resources/page: Add :slugorfilename attribute f2cc72a1f Update spellcheck.yml (#1755) git-subtree-dir: docs git-subtree-split: e5aa641a629ce70de609a006fb9a57ee422922f5
2022-06-28Accept vendor-specified build date if .git/ is unavailableAnthony Fok
Fixes #10053
2022-06-28snap: Replace mage with "go build" and set VendorInfo=snapAnthony Fok
2022-06-27snap: Use interface names etc-gitconfig and gitconfig, Take 2Anthony Fok
as recommended by @alexmurray to keep consistency with other snaps; see https://forum.snapcraft.io/t/system-files-and-personal-files-request-for-hugo/30598 I neglected to make the rename of system-gitconfig → etc-gitconfig and user-gitconfig → gitconfig to the apps.plugs section in commit fd3953c, hence this commit to fix the store upload scan failure: interface 'system-gitconfig' not found in base declaration interface 'user-gitconfig' not found in base declaration unknown plugs interface name reference 'system-gitconfig' unknown plugs interface name reference 'user-gitconfig' Special thanks to Alex Murray and Igor Ljubuncic for approving the system-files and personal-files request for Hugo. Fixes #6226
2022-06-26Extract the baseline benchmark to a testBjørn Erik Pedersen
2022-06-25Add a baseline benchmarkBjørn Erik Pedersen
2022-06-24snap: Use interface names etc-gitconfig and gitconfigAnthony Fok
as recommended by @alexmurray to keep consistency with other snaps; see https://forum.snapcraft.io/t/system-files-and-personal-files-request-for-hugo/30598/2 One closer step towards fixing #6226