Bjørn Erik Pedersen
c892e75fbc
resources/page: Pull internal Page methods into its own interface
...
So it doesn't get visible when passing it to `jsonify`.
2024-05-02 10:49:02 +02:00
hugoreleaser
4255d13d3e
releaser: Prepare repository for 0.126.0-DEV
...
[ci skip]
2024-05-01 15:36:00 +00:00
hugoreleaser
c8b9f9f81c
releaser: Bump versions for release of 0.125.5
...
[ci skip]
2024-05-01 15:22:11 +00:00
Bjørn Erik Pedersen
7be7f89bf6
Fix rebuilds on cascade deletes/renames
...
And also avoid reading sub directories on simple changes to branch `_index.md` files.
Fixes #12449
2024-05-01 17:18:30 +02:00
Bjørn Erik Pedersen
c8e400b621
commands: Print "Webserver is ..." right before "Total ..."
...
Also fix it so
* It's not printed when running `hugo -w`
* It'd printed for all kinds of rebuilds
Fixes #12384
2024-05-01 10:52:40 +02:00
Bjørn Erik Pedersen
9dd687027f
Make sure replaced pages gets marked as stale
...
Fixes #12436
2024-04-30 20:57:44 +02:00
hugoreleaser
1961327536
releaser: Prepare repository for 0.126.0-DEV
...
[ci skip]
2024-04-25 13:40:37 +00:00
hugoreleaser
cc3574ef4f
releaser: Bump versions for release of 0.125.4
...
[ci skip]
2024-04-25 13:27:26 +00:00
Peter van Dijk
fe84cc218e
commands: Clarify that create or install a theme are two options
2024-04-25 14:38:22 +02:00
Bjørn Erik Pedersen
babcb339a8
config: Setups with only one active language can never be multihost
...
Fixes #12288
2024-04-25 14:35:49 +02:00
Bjørn Erik Pedersen
7203a95a60
Fix rebuilds when running hugo -w
...
This was partly broken in Hugo 0.123.0.
We have two internal config options that gets set from the CLI:
* Running; a web server is running
* Watching; either set via `hugo -w` or `hugo server --watch=false`
Part of the change detection code wrongly used the `Running` as a flag when `Watching` would be the correct.
Fixes #12296
2024-04-25 14:35:49 +02:00
dependabot[bot]
fb084390cd
build(deps): bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.20.19 to 2.20.20.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.20.19...v2.20.20 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25 11:44:14 +02:00
Joe Mooring
fb51b698b3
tpl/tplimpl: Fix double-escaping in opengraph template
...
Closes #12418
2024-04-25 10:03:17 +02:00
Bjørn Erik Pedersen
6b867972ec
Use Apache License without modification
...
Closes #12415
2024-04-23 09:15:29 +02:00
Bjørn Erik Pedersen
509ab08c1b
markup/goldmark: Fix data race in the hugocontext wrapper
...
The window for this to happen is very small, but it has been reported by Go's race detector (-race flag) in a tests once.
2024-04-22 19:10:15 +02:00
Bjørn Erik Pedersen
2d75f539e1
Delete .hugo_build.lock
...
Added to Git by accident.
2024-04-22 16:57:48 +02:00
Bjørn Erik Pedersen
15a4b9b337
tpl: Escape .Title in built-in image and link render hooks
...
Co-authored-by: Joe Mooring <joe@mooring.com>
2024-04-22 16:54:24 +02:00
Joe Mooring
10a8448eee
tpl/tplimpl: Improve embedded templates
...
- Do not call the YouTube oEmbed API
- Do not include the Hugo version in RSS feeds
Closes #12396
2024-04-22 15:57:37 +02:00
Eric Anderson
722c486a34
SECURITY.md: Update link to security model
...
The security model was moved in https://github.com/gohugoio/hugoDocs/pull/2495
2024-04-22 13:04:53 +02:00
Bjørn Erik Pedersen
f40f50ead0
modules: Fix potential infinite loop in module collection
...
Fixes #12407
2024-04-22 11:34:11 +02:00
hugoreleaser
4e483f5d4a
releaser: Bump versions for release of 0.125.2
...
[ci skip]
2024-04-20 15:29:44 +00:00
Bjørn Erik Pedersen
06d248910c
Only add root sections to the section pages menu
...
Fixes #12399
2024-04-20 17:23:33 +02:00
Bjørn Erik Pedersen
004b694390
Fix partial rebuilds for SCSS fetched with GetMatch and similar
...
Fixes #12395
2024-04-20 15:09:12 +02:00
Joe Mooring
da6112fc65
commands: Add gen chromastyles --lineNumbersTableStyle flag
...
For symmetry, also rename --linesStyle to --lineNumbersInlineStyle.
Closes #12393
2024-04-20 12:25:28 +02:00
Bjørn Erik Pedersen
faf9fedc3d
resources/images: Fix TestColorLuminance on s390x
2024-04-19 11:21:50 +02:00
Joe Mooring
11aa893198
commands: Provide examples for chromastyles flags
...
Closes #12387
2024-04-18 12:16:36 -07:00
hugoreleaser
d88cb5269a
releaser: Prepare repository for 0.126.0-DEV
...
[ci skip]
2024-04-18 08:34:20 +00:00
hugoreleaser
68c5ad638c
releaser: Bump versions for release of 0.125.1
...
[ci skip]
2024-04-18 08:21:19 +00:00
Bjørn Erik Pedersen
0c188fda24
tpl: Use erroridf for remote YouTube errors
...
So they can be silenced.
Fixes #12383
2024-04-18 10:02:36 +02:00
Bjørn Erik Pedersen
bbc6888d02
build: Fix `GLIBC_2.29' not found issue
...
Closes #12381
2024-04-17 12:04:00 +02:00
hugoreleaser
8c14d1edc3
releaser: Prepare repository for 0.126.0-DEV
...
[ci skip]
2024-04-16 15:21:02 +00:00
hugoreleaser
a32400b5f4
releaser: Bump versions for release of 0.125.0
...
[ci skip]
2024-04-16 15:04:41 +00:00
Bjørn Erik Pedersen
df9f2fb617
docs: Regen docshelper
2024-04-16 12:08:28 +02:00
Bjørn Erik Pedersen
fa60a2fbc3
Fix server rebuilds when adding a content file on Linux
...
Fixes #12362
2024-04-16 12:06:37 +02:00
dependabot[bot]
fe63de3a83
build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.0 to 2.2.1
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.2.0...v2.2.1 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 10:43:50 +02:00
Bjørn Erik Pedersen
e197c7b29d
Add Luminance to Color
...
To sort an image's colors from darkest to lightest, you can then do:
```handlebars
{{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }}
```
This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance
Fixes #10450
2024-04-16 10:02:46 +02:00
Bjørn Erik Pedersen
74e9129568
hugolib: Add an asciidoc rebuild test case
...
See #12375
2024-04-15 15:57:11 +02:00
Bjørn Erik Pedersen
df11327ba9
Pass .RenderShortcodes' Page to render hooks as .PageInner
...
The main use case for this is to resolve links and resources (e.g. images) relative to the included `Page`.
A typical `include` would similar to this:
```handlebars
{{ with site.GetPage (.Get 0) }}
{{ .RenderShortcodes }}
{{ end }}
```
And when used in a Markdown file:
```markdown
{{% include "/posts/p1" %}}
```
Any render hook triggered while rendering `/posts/p1` will get `/posts/p1` when calling `.PageInner`.
Note that
* This is only relevant for shortcodes included with `{{%` that calls `.RenderShortcodes`.
* `.PageInner` is available in all render hooks that, before this commit, received `.Page`.
* `.PageInner` will fall back to the value of `.Page` if not relevant and will always have a value.
Fixes #12356
2024-04-15 09:49:57 +02:00
dependabot[bot]
a18e2bcb9a
build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0
...
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-14 17:53:18 +02:00
Joe Mooring
6049ba99f0
helpers: Fix TrimShortHTML when used with AsciiDoc content
...
Fixes #12369
2024-04-14 17:53:05 +02:00
Bjørn Erik Pedersen
8e50ccfae7
github: Add a "free space" step on Ubuntu
2024-04-14 16:42:04 +02:00
Bjørn Erik Pedersen
bfc3122f8e
helpers: Add BenchmarkTrimShortHTML
2024-04-14 15:54:49 +02:00
Bjørn Erik Pedersen
00ae8e8c72
github: Update actions
2024-04-14 13:40:46 +02:00
Bjørn Erik Pedersen
e423e56273
github: Format GitHub actions files
2024-04-14 13:40:46 +02:00
Joe Mooring
09eb822822
hugolib: Display server address after each rebuild
...
Closes #12359
2024-04-13 22:16:00 +02:00
Joe Mooring
a6e8439176
resources/page: Add taxonomies Page method
...
Closes #12316
2024-04-12 16:26:02 +02:00
Bjørn Erik Pedersen
38f68cd162
commands: Adjust completions
2024-04-11 15:34:26 +02:00
Ville Skyttä
a67650b6f7
completion: Improve existing argument completions, add many more
...
Do not offer filenames to arguments not taking one, complete arguments
of options taking resource kinds, directory names, --logLevel, release
--step, config and new --format.
As an internal refactoring, use higher level functions to set flag
completions. SetAnnotation works, but is more verbose than
alternatives, and uses bash specific wording.
While at it, move setting completions next to flag definitions
consistently.
Remove superfluous --destination completer setting, which is already
set elsewhere.
2024-04-11 15:34:26 +02:00
Bjørn Erik Pedersen
2a060b37a3
Upgrade to Go 1.22.2
...
Closes #12351
2024-04-11 15:14:28 +02:00
dependabot[bot]
97df6be59f
build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.19.0...v0.20.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>
2024-04-11 14:18:55 +02:00