Releases: gohugoio/hugo
v0.118.2
v0.118.1
Note: There still seem to be an issue on Vercel.
This release only fixes a GLIBC_xxx not found
issue with the Linux AMD64 binary when running on older Linux versions, which is the situation when building on Netlify/Vercel etc. 7e9092e @bep #11414
There's no functional changes in this release. See v0.118.0.
v0.118.0
Note: Hugo 0.118.2 fixes an issue with the Linux binaries when building on Netlify/Vercel/etc.
Hugo 0.118.0
now builds with Go 1.21. This version also comes with:
- Proper CJK support in Markdown:
[markup.goldmark]
[markup.goldmark.extensions]
[markup.goldmark.extensions.cjk]
# Whether to enable CJK support.
enable = false
# Whether softline breaks between east asian wide characters should be ignored.
eastAsianLineBreaks = false
# Whether a '\' escaped half-space(0x20) should not be rendered.
escapedSpace = false
- A revamped implementation of
hugo new site
andhugo new theme
. See details.
Bug fixes
- Fix RegularPagesRecursive for the home page 15d3e48 @bep #11396
- Fix .RawContent for empty content pages (#11407) 3a8aad6 @bep #11406
- common/loggers: Fix typo in option name 65871d5 @alexandear
- Fix it so disable a module does not disable transitive dependency required by others dcf425c @bep #11376
Improvements
- Delay the creation of cache directories until they're used 94fbab2 @bep #11390
- deploy: Create AWS session for CloudFront invalidation via Go CDK c3f273b @mattbnz
- markup/goldmark: Add CJK extension d7dcc76 @henry0312 #10472
- testscripts: Move hugo new tests to where they belong d2ae9e1 @bep
- hugolib: Handle dropped error a7b93e6 @alrs
- Make sure resources directory isn't created in hugo new theme ebaa733 @bep #11382
- Go 1.21 Upgrade 24b1be4 @bep #11351
- testscripts: Make mod vendor test stable 111f02d @bep
- create/skeletons: Move theme's site config to top level 9a8c84d @jmooring #11380
- modules: Make new cache directories read/write cdf0b3b @jmooring #11369
- deploy: Update InvalidateCloudFront to use Go CDK helper d979831 @alexandear
- Avoid escaping HTML chars inside hugo_stats.json bcf7421 @bep #11371
- commands/new: Embed site and theme skeletons b653853 @jmooring #11358
- cache: Hide IsResourceDir from the exported config a2f6400 @bep
- commands: Handle floats without decimals in hugo config 7d74cd0 @bep #11345
- config: Add a type value for the tags related config entry b1b6912 @bep
- Try to make test more stable 641390f @bep
Dependency Updates
- build(deps): bump google.golang.org/api from 0.134.0 to 0.138.0 9bf76fd @dependabot[bot]
- build(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0 b2a02c3 @dependabot[bot]
- build(deps): bump gocloud.dev from 0.33.0 to 0.34.0 6821d6f @dependabot[bot]
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.9 to 2.1.0 93c7ad1 @dependabot[bot]
- build(deps): bump github.com/yuin/goldmark from 1.5.5 to 1.5.6 a19d03b @dependabot[bot]
- build(deps): bump github.com/evanw/esbuild from 0.18.17 to 0.19.2 db7bc49 @dependabot[bot]
Documentation
- docs: Regen docs helper e847a98 @bep
- Don't use the OS environment when creating config for docs 45c9bbc @bep
- dockerfile: Update Docker images 8a08f91 @michalbiesek
- docshelper: Improve template lookup order descriptions 90944aa @jmooring
Build Setup
v0.117.0
This is a release on the small side, but. especially the new Page.RenderShortcodes
method is so useful, especially for bigger sites, that we decided to get it out sooner rather than later. This method renders all the shortcodes in the content, preserving the surrounding markup (e.g. Markdown) as is. See the Hugo Documentation for more information.
Improvements
- Add Page.RenderShortcodes ade7ec8 @bep #7297
- testing: Write test caches to /tmp 16da1ad @bep #11327
- Add retry in resources.GetRemote for temporary HTTP errors a3d42a2 @bep #11312
Dependency Updates
- build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0 0de81c6 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.10.0 to 0.11.0 d4a6c16 @dependabot[bot]
- deps: Sync go-i18n with upstream 2e6191b @bep #11336
- build(deps): bump gocloud.dev from 0.24.0 to 0.33.0 2c20fd5 @dependabot[bot]
- build(deps): bump golang.org/x/net from 0.11.0 to 0.13.0 243736e @dependabot[bot]
- build(deps): bump github.com/marekm4/color-extractor from 1.2.0 to 1.2.1 bf891c2 @dependabot[bot]
- build(deps): bump github.com/frankban/quicktest from 1.14.5 to 1.14.6 da0df0a @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.9.0 to 0.10.0 0885f8e @dependabot[bot]
- build(deps): bump github.com/clbanning/mxj/v2 from 2.5.7 to 2.7.0 61be050 @dependabot[bot]
- build(deps): bump golang.org/x/tools from 0.9.3 to 0.11.1 65af75f @dependabot[bot]
- build(deps): bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 2d75f74 @dependabot[bot]
- build(deps): bump github.com/hairyhenderson/go-codeowners 2ac3d61 @dependabot[bot]
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 9dce45c @dependabot[bot]
Documentation
v0.116.1
v0.116.0
There are two notable changes in this release. For one, we have changed the default location of the cacheDir
(where Hugo stores all its file caches). Having the cache stored in a /tmp
folder has had its issues, especially for the module cache and especially on MacOS. The current new default should be better and more stable. See See Configure CacheDir for more info.
Also in this release: The where
template func finally supports regular expressions with the new like operator.
Note
- Deprecate taxonomyTerm bec9b80 @bep #11256
- Warn about unknown kinds in disableKinds 1c97095 @bep #11256
- The default value for
cacheDir
is changed to be stored below the directory as defined by Go's os.UserCacheDir. See Configure CacheDir
Bug fixes
- resources: Fix spelling in method name be8e2de @bep
- Fix so temporary images do not get published fbb8eb3 @bep #10255
- readme: Fix link 87d9bff @tfsojon
- tpl/collections: Fix description of apply function dc2a544 @jmooring
- Fix multiple languages in HUGO_DISABLELANGUAGES 7f058b8 @bep #11278
Improvements
- config: Do not fail on unknown config keys c1df5b1 @bep
- commands: Update cacheDir description d9fdcbe @jmooring
- Update where.md 295d733 @bep
- Deprecate taxonomyTerm bec9b80 @bep #11256
- Warn about unknown kinds in disableKinds 1c97095 @bep #11256
- Move all Kind constants to its own package b3cb678 @bep #11256
- Remove unused autogenerated method 36b5126 @bep
- tpl/collections: Add BenchmarkWhereOps ef6e813 @bep
- tpl/collections: Add like operator to where function f4598a0 @jmooring #11279
- Use os.UserCacheDir as first fallback if cacheDir is not set b3f1055 @bep #11286 #11291
- Add a common regexp cache 4d7af75 @bep
- commands: Replace deprecated ioutil with os 2589b12 @alexandear
Dependency Updates
- build(deps): bump github.com/evanw/esbuild from 0.18.11 to 0.18.17 d7db096 @dependabot[bot]
- build(deps): bump github.com/rogpeppe/go-internal 5542f02 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.8.0 to 0.9.0 0bc7ed9 @dependabot[bot]
- deps: Upgrade github.com/yuin/goldmark v1.5.4 => v1.5.5 739d10e @jmooring
Documentation
- docs: Regenerate CLI docs d297c8e @bep
- docs: Update where d524778 @bep
- docs: Update where function operators 036e260 @jmooring
- docs: Rework the cacheDir documentation a50356b @bep
Build Setup
v0.115.4
Bug fixes
- Fix broken handling of legacy taxonomyTerm in disableKinds d70b6c7 @bep #11257
- Fix cache busting setup 6bbec90 @bep #11268
- common/htime: Fix localization of abbreviated month names 2f11e67 @jmooring #11267
- Fix setting config from env with complex (e.g. YAML) strings c406fd3 @bep #11249
- Fix for data mounts in sub folders 286821e @dvdksn
Improvements
- commands: Move testscript into its correct place d947db3 @bep
- publisher: Improve class collector for dynamic classes d8c94c3 @bep
- commands: Delay server builds after the watcher is set up 5bd22ba @bep #11264
- Create hugo_stats.json if it's mounted but does not exists 7ae62f4 @bep #11264
- Re-instate disableLiveReload as a config option (and not just a flag) f1a061e @bep #11259
- Improve error messages for PostCSS etc. 387c5f6 @bep #9730
v0.115.3
What's Changed
- Improve behavior of defaultContentLanguageInSubdir when only the default language is enabled cc44583 @bep #11229
- Return error when .Render is invoked without arg 4da672a @bep #11243
- js: Pass tsconfig.json to esBuild f1886f8 @jmooring #11232
- tpl/collections: Fix WordCount (etc.) regression in Where, Sort, Delimit 5bec508 @bep #11234
- config/allconfig: Update timeout description f650e4d @jmooring
- docs: Refresh docs.json c934a45 @jmooring
v0.115.2
Bug fixes
- Fix hugo mod vendor for modules with hugo.toml 0f921ac @bep #11221
- Fix static content files multilingual root regression 6019953 @bep #11223
- Fix defaultContentLanguageInSubdir with only 1 language 92e8670 @bep #10064
- Make imageConfig work with modules a78b17d @bep #11205
- Restore language.disabled config a481942 @bep #11219
Improvements
- config: Expand default security.exec.osEnv policy 6c9ea02 @dvdksn #9333
- Add titleCaseStyle none and firstupper 12d3469 @bep #11204
- Bump github.com/bep/clock v0.3.0 to renamed github.com/bep/clocks v0.5.0 bf7ee8a @anthonyfok
Build Setup
v0.115.1
Bug fixes
- Fix buildStats when tags and classes are disabled ceb486f @bep #11202
- commands: Fix index out of range in hugo mod get 0ff8e13 @bep #11190
Improvements
- Rework the build.writeStats struct 5afc89f @bep #11191
- github: Build for Dragonfly in CI build 19d76ae @bep
- Make build.writeStats a struct 11ecea6 @bep #11191
- Only print the path warnings once ffd37d4 @bep #11187
Dependency Updates
- build(deps): bump github.com/evanw/esbuild from 0.18.10 to 0.18.11 da98724 @dependabot[bot]
- build(deps): bump github.com/alecthomas/chroma/v2 from 2.7.0 to 2.8.0 4d470bb @dependabot[bot]