satotake
281554ee97
hugofs: Fix glob case-sensitivity bug
...
On Linux, `hugofs.Glob` does not hit any directories which includes
uppercase letters. (This does not happen on macOS.)
Since `resources.GetMatch/Match` uses `Glob`,
```
{{ resources.GetMatch "Foo/bar.css" }}
```
this does not match `assets/Foo/bar.css` .
On the other hand, you can get it with
```
{{ resources.Get "Foo/bar.css" }}
```
2022-09-23 13:12:57 +02:00
Bjørn Erik Pedersen
f3560aa0e1
server: Fix 404 redirects on Windows
...
Fixes #10314
2022-09-23 13:07:56 +02:00
dependabot[bot]
edf9038a92
build(deps): bump github.com/evanw/esbuild from 0.15.8 to 0.15.9
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.8 to 0.15.9.
- [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.8...v0.15.9 )
---
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-09-23 10:56:45 +02:00
dependabot[bot]
78f49b4c0d
build(deps): bump github.com/yuin/goldmark from 1.4.14 to 1.4.15
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.14 to 1.4.15.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.14...v1.4.15 )
---
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-09-22 19:25:55 +02:00
dependabot[bot]
fa4b77e7ed
build(deps): bump github.com/getkin/kin-openapi from 0.100.0 to 0.103.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.100.0 to 0.103.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.100.0...v0.103.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-09-22 19:05:44 +02:00
Bjørn Erik Pedersen
8377c3cea1
docs: Regen docs helper
2022-09-22 18:55:00 +02:00
dependabot[bot]
4d909d4768
build(deps): bump github.com/alecthomas/chroma/v2 from 2.2.0 to 2.3.0
...
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/alecthomas/chroma/releases )
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml )
- [Commits](https://github.com/alecthomas/chroma/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-22 18:54:27 +02:00
dependabot[bot]
4eb6d97404
build(deps): bump github.com/evanw/esbuild from 0.15.7 to 0.15.8
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.7 to 0.15.8.
- [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.7...v0.15.8 )
---
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-09-22 18:53:12 +02:00
Bjørn Erik Pedersen
4f9cb4f344
docs: Regenerate CLI docs
2022-09-22 17:57:13 +02:00
Bjørn Erik Pedersen
0171fb2010
Run go mod tidy
2022-09-22 17:42:48 +02:00
Bjørn Erik Pedersen
a4028112e3
resources/images: Add $image.Colors
...
Which returns the most dominant colors of an image using a simple histogram method.
Fixes #10307
2022-09-22 15:57:35 +02:00
Bjørn Erik Pedersen
08f0984f91
commands: Skip flaky test on CI
2022-09-22 11:24:42 +02:00
Mathieu Parent
86653fa38e
config/security: Allow proxy variables in subcommands
...
In particular for go get
2022-09-19 12:37:35 +02:00
hugoreleaser
c46d104985
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-18 13:31:21 +00:00
hugoreleaser
b665f1e8f1
releaser: Bump versions for release of 0.103.1
...
[ci skip]
2022-09-18 13:19:01 +00:00
Bjørn Erik Pedersen
6be6752c8a
server: Fix redirects when file path contains bytes > 0x80
...
Fixes #10287
2022-09-18 15:16:11 +02:00
Bjørn Erik Pedersen
8e9dce1092
Merge branch 'release-0.103.0'
2022-09-15 18:47:37 +02:00
hugoreleaser
00b71668b2
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-15 16:35:38 +00:00
hugoreleaser
beebf2afb0
releaser: Bump versions for release of 0.103.0
...
[ci skip]
2022-09-15 16:23:56 +00:00
Bjørn Erik Pedersen
3f0b40f674
Use standard GOOS/GOARCH values in release archives
...
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).
Fixes #10073
2022-09-15 18:22:35 +02:00
Bjørn Erik Pedersen
0bd79d30c1
Use standard GOOS/GOARCH values in release archives
...
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking).
Fixes #10073
2022-09-15 12:26:22 +02:00
Bjørn Erik Pedersen
8e77bcc930
Filter out any duplicate files to post process
...
Updates #10269
2022-09-14 19:42:55 +02:00
Bjørn Erik Pedersen
74daca6b30
Support PostProcess for all file types
...
Not just HTML.
Fixes #10269
2022-09-14 19:09:20 +02:00
dependabot[bot]
1fd4c562af
build(deps): bump github.com/gobuffalo/flect from 0.2.5 to 0.3.0
...
Bumps [github.com/gobuffalo/flect](https://github.com/gobuffalo/flect ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/gobuffalo/flect/releases )
- [Commits](https://github.com/gobuffalo/flect/compare/v0.2.5...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/gobuffalo/flect
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 18:12:47 +02:00
Bjørn Erik Pedersen
a5cda5ca4d
server: Add 404 support
2022-09-14 14:25:33 +02:00
dependabot[bot]
5e2b28d6e6
build(deps): bump github.com/getkin/kin-openapi from 0.98.0 to 0.100.0
...
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi ) from 0.98.0 to 0.100.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases )
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.98.0...v0.100.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-09-14 11:21:14 +02:00
dependabot[bot]
f2019f0a23
build(deps): bump github.com/evanw/esbuild from 0.15.5 to 0.15.7
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.15.5 to 0.15.7.
- [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.5...v0.15.7 )
---
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-09-14 10:58:32 +02:00
dependabot[bot]
475638fe02
build(deps): bump github.com/yuin/goldmark from 1.4.13 to 1.4.14
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.4.13 to 1.4.14.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.13...v1.4.14 )
---
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-09-14 10:58:12 +02:00
Bjørn Erik Pedersen
203cc54578
Feat/sponsors in readme ( #10273 )
...
* Update README.md
* Update README.md
2022-09-14 10:20:57 +02:00
Bjørn Erik Pedersen
af23cdca9c
Merge commit '90ad8045056167004d27857a95542936657b8a16'
2022-09-13 20:34:24 +02:00
Bjørn Erik Pedersen
90ad804505
Squashed 'docs/' changes from e5aa641a6..392668f4f
...
392668f4f Update theme
65d82c845 fix versions in GitHub Pages docs (#1815 )
4e078a306 Create hosting-on-azure-static-web-apps.md (#1738 )
e24e25052 fix requirement typo (#1814 )
0790eb173 fix broken link (#1813 )
f4a1b38c7 📄 Add more clarity on merging of config files (#1493 )
2e82efff0 Install on Windows: Correct + augment (#1520 )
4bffd076e Update frontends to add CloudCannon's CMS (#1509 )
17eea3133 Update index.md to add resource (#1508 )
5a5ac1d2f Add documentation for babel sourceMap (#1492 )
899b7117c Update menu-templates.md
284dc4266 Include flexible translation in i18n.md
f03421274 docs: Escaping Hugo/GO template code
4f0755683 Improve the documentation of imageConfig and the image resource
89aa723cc Clarify leaf bundle explanation and related FAQ
0c6b32bb9 Update starter-kits.md
a68151b1b Update starter-kits.md
91b145384 Update starter-kits.md
c8104b422 Update hosting-on-21yunbox.md
51ee7603b Update hosting-on-21yunbox.md
d88314499 docs(en): add hosting on 21YunBox
aab04f269 Update shortcode-templates.md to correct an error.
ed48563aa Misc improvements
87dd24e1d Fix merge failure
0bcc6dca8 js.Build: Update docs to not allow boolean inputs for sourceMap
e50a28fbc js.Build: Add SourceMap flag into js.Build opts which can turn on sourcemap
9695093a1 Fix Arch Linux installation command
3de773d7a Please remove hugo-elasticsearch plugin.
6510f0a5a release: Add some more ignore expressions to release notes config
dc90b7517 typoe > typo (!)
3427c7436 Add hugoreleaser config
5a1f2d0dd Improves formatting of resources, assets sections (#1804 )
03ba56fdd Remove Flesland Flis from Showcases
9f61dac7a Update slice.md
533e4e0cd Update theme
85e50325c Simplify writing
9b30e81b9 Typo fix and remove passive form
8974b6c53 dynamic-menu-configuration
1c5467329 netlify: Hugo 0.102.3
610a937b0 Remove Over from Showcase
99f5585bc netlify: Hugo v0.102.2
9f230ac1f netlify: Hugo v0.102.1
a6fc3f864 netlify: Bump to Hugo v0.102.0
3e9bc1a62 Merge branch 'tempv0.102.0'
c08d6d898 Update en/templates/404.md with Firebase Hosting (#1796 )
322b75f40 Update configuration.md
2fa6f0b94 404 template example: remove slash relURL arg
1195f168a Remove broken link (#1767 )
e0838e574 Update RenderString.md
bee6adf71 Update page-resources.md
24e142f22 Remove duplicate word from cascade description
879fc3983 docs: Update the description of PostCSS config
2ffe539e3 fix: Use `=` instead of `:=` for variable reassignments (#1771 )
7496b8f87 update 404 error for digitalocean docs
c85caca4a Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'
c3888b63a docs: Regen docshelper
8a5942555 Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
282007217 common: Add hugo.GoVersion
00b4b46da resources/page: Add :slugorfilename attribute
git-subtree-dir: docs
git-subtree-split: 392668f4f488d184b08b227028b01dbc02abd57a
2022-09-13 20:34:24 +02:00
satotake
ab5ce59894
Fix usage description
2022-09-08 15:35:11 +02:00
satotake
7d40da876c
Add --force
to hugo new
...
Closes #9243
2022-09-08 15:35:11 +02:00
Jenny Rakoczy
02c89a446d
scss: Handle single-file sourcemaps correctly
...
Simple sites may only have one css file. Update the replace directive to
correctly match single-file sourcemaps and multi-file sourcemaps.
Verified locally with and without SASS and CSS imports.
Fixes #8174
2022-09-06 10:52:28 +02:00
Bjørn Erik Pedersen
06c3ac6741
release: Bump Hugoreleaser version
2022-09-03 11:38:03 +02:00
Alex
5e03de0ddb
Update stale.yml
...
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2022-09-02 20:13:02 +02:00
hugoreleaser
bef31b58aa
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-09-01 10:34:57 +00:00
hugoreleaser
b76146b129
releaser: Bump versions for release of 0.102.3
...
[ci skip]
2022-09-01 10:16:19 +00:00
Bjørn Erik Pedersen
8e5044d7f5
Fix shortcode parser regression with quoted param values
...
This issue was introduced in `v0.102.0`.
In 223bf28004
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-09-01 12:13:23 +02:00
Joe Mooring
5046a6c7ca
deps: Update github.com/tdewolff/minify/v2 v2.12.0 => v2.12.1
...
Fixes #10230
2022-08-31 09:02:50 +02:00
Anthony Fok
160a067c81
snap: Use "snapcraftctl set-grade"
...
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-30 05:23:18 -06:00
Anthony Fok
e0ba1a805a
snap: Use "snapcraftctl set-version"
...
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-29 23:14:22 -06:00
Anthony Fok
7b49c56a6a
snap: Make external dependencies actually work
...
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-29 12:24:58 -06:00
Bjørn Erik Pedersen
dffca57883
release: Add the releaser commits to the ignore list
2022-08-29 16:29:45 +02:00
Bjørn Erik Pedersen
79932e7225
release: Fix the Deb archives
...
Fixes #10220
2022-08-29 14:56:15 +02:00
hugoreleaser
9eb9b70a29
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-08-28 16:41:06 +00:00
hugoreleaser
0ff4a9326f
releaser: Bump versions for release of 0.102.0
...
[ci skip]
2022-08-28 16:29:34 +00:00
Bjørn Erik Pedersen
45e1084ff2
Add linux/arm64 extended to release setup
...
Fixes #8257
2022-08-28 18:23:01 +02:00
Bjørn Erik Pedersen
c98348416c
license: Add copyright info
...
Closes #10218
2022-08-28 12:55:47 +02:00
dependabot[bot]
2de393c791
build(deps): bump go.uber.org/atomic from 1.9.0 to 1.10.0
...
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-28 12:02:17 +02:00