Age | Commit message (Collapse) | Author |
|
This introduces a more automatic way of increasing the log levels for deprecation log statements based on the version it was deprecated.
The thresholds are a little arbitrary, but
* We log INFO for 6 releases
* We log WARN for another 6 releases
* THen ERROR (failing the build)
This should give theme authors plenty of time to catch up without having the log filled with warnings.
|
|
Removes emoji code conversion from the page and shortcode parsers. Emoji
codes in markdown are now passed to Goldmark, where the goldmark-emoji
extension converts them to decimal numeric character references.
This disables emoji rendering for the alternate content formats: html,
asciidoc, org, pandoc, and rst.
Fixes #7332
Fixes #11587
Closes #11598
|
|
by others
The motivation behind the original implementation was probably to show disabled modules when running `hugo mod graph`.
Fixes #11376
|
|
Which doesn't have any practical difference, but it looks cleaner in the generated docs.
|
|
Also consolidate so the mediaTypes and outputFormats are listed once only.
Fixes #11328
|
|
Fixes #11313
|
|
Make it a warning.
One such example I found in an old site is `blackfriday`. These should be fixed/removed, but it's not important enough
to fail the build.
|
|
In favour of 'taxonomy'
Closes #11256
|
|
See #11256
|
|
See #11256
|
|
We will now try
1. cacheDir (or, commonly set in environment as `HUGO_CACHEDIR`)
2. if on Netlify we use `/opt/build/cache/hugo_cache/`
3. os.UserCacheDir
4. A temp dir
Storing the cache, especially the module cache, in a temporary idea has had lots of hard to debug issues, especially on MacOS,
which this commit tries to fix.
This should also make it easier to locate the Hugo cache:
>UserCacheDir returns the default root directory to use for user-specific cached data. Users should create their own
application-specific subdirectory within this one and use that.
>
>On Unix systems, it returns $XDG_CACHE_HOME as specified by
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.cache. On Darwin, it
returns $HOME/Library/Caches. On Windows, it returns %LocalAppData%. On Plan 9, it returns $home/lib/cache.
>
>If the location cannot be determined (for example, $HOME is not defined), then it will return an error.
Fixes #11286
Fixes #11291
|
|
Fixes #11278
|
|
Fixes #11257
|
|
By correctly capturing the target variable when compiling the cache buster.
Fixes #11268
|
|
Closes #11259
|
|
Fixes #9730
|
|
So you can do
```
HUGO_OUTPUTS="home: [rss]" hugo
```
And similar.
Fixes #11249
|
|
|
|
Fixes #11219
|
|
Fixes #10064
|
|
To better support private Hugo modules and automatically
launching a text editor on content creation, this change
adds the following environment variables to the default
security policy:
- HOME
- XDG_CONFIG_HOME
- USERPROFILE
- SSH_AUTH_SOCK
- DISPLAY
- LANG
Fixes #9333
|
|
Mostly to make it easier to toggle on/off this feature from the env.
See #11191
|
|
So you can do
```toml
[build.writeStats]
tags = true
classes = true
ids = false
```
Fixes #11191
|
|
We could reset and rerun it on server rebuilds, but that report needs a full build to make sense.
Also clean up the config vs flags in this area: Make all config settings match the flags e.g. `printPathWarnings`, but set up aliases for the
old.
Fixes #11187
|
|
* Move config loading to the page package
* Fix a lower bound panic for the `:sections` slice syntax.
* Always return the `:title`
* Add some permalinks integration tests
* Also see issues below
Fixes #9448
Fixes #11184
See #8523
|
|
Fixes #11159
|
|
Fixes #11176
|
|
configuration
Allows using permalink configuration for sections (branch bundles) and
also for taxonomy pages. Extends the current permalink configuration to
be able to specified per page kind while also staying backward compatible:
all permalink patterns not dedicated to a certain kind, get automatically
added for both normal pages and term pages.
Fixes #8523
|
|
To prevent OS environment vars confusing the tests.
|
|
|
|
Fixes #11124
|
|
The template packages are based on go1.20.5 with the patch in befec5ddbbfbd81ec84e74e15a38044d67f8785b added.
This also includes a security fix that now disallows Go template actions in JS literals (inside backticks).
This will throw an error saying "... appears in a JS template literal".
If you're really sure this isn't a security risk in your case, you can revert to the old behaviour:
```toml
[security]
[security.gotemplates]
allowActionJSTmpl = true
```
See https://github.com/golang/go/issues/59234
Fixes #11112
|
|
Fixes #11089
|
|
|
|
Fixes #11083
|
|
Fixes #11059
|
|
Fixes #11057
|
|
Fixes #11040
|
|
Fixes #11044
|
|
Fixes #11046
|
|
Fixes #11047
|
|
This is common for monolingual sites, and we broke this in Hugo 0.112.4.
Fixes #11037
|
|
Fixes #10974
|
|
Fixes #10286
|
|
Fixes #10969
|
|
Updates #10953
|
|
Updates #10953
|
|
|
|
|
|
Updates #10953
|