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