Hugo 0.77.0: Hugo Modules Improvements and More
Hugo 0.77.0
is a small, but useful release. Some notable updates are:
- time.AsTime accepts an optional location as second parameter, allowing timezone aware printing of dates.
- You can now build with
go install -tags nodeploy
if you don’t need thehugo deploy
feature. - Remote
getJSON
errors can now be ignored by addingignoreErrors = ["error-remote-getjson"]
to your site config.
There are also several useful Hugo Modules enhancements:
- We have added
Replacements
to the Module Configuration. This should enable a much simpler developer workflow, simpler to set up preview sites for your remote theme etc, as you now can doenv HUGO_MODULE_REPLACEMENTS="github.com/bep/myprettytheme -> ../.." hugo
and similar. - The module
Path
for local modules can now be absolute for imports defined in the project.
This release represents 38 contributions by 11 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason, and @anthonyfok for their ongoing contributions.
And a big thanks to @digitalcraftsman for his relentless work on keeping the themes site in pristine condition and to @davidsneighbour, @coliff and @kaushalmodi for all the great work on the documentation site.
Many have also been busy writing and fixing the documentation in hugoDocs, which has received 3 contributions by 3 contributors.
Hugo now has:
- 47530+ stars
- 438+ contributors
- 361+ themes
Enhancements
Templates
- Refactor time.AsTime location implementation 807db97a @moorereason
- Update Hugo time to support optional [LOCATION] parameter 26eeb291 @virgofx
- Improve layout path construction acfa1538 @moorereason
- Test all lookup permutations in TestLayout 78b26d53 @moorereason
- Reformat TestLayout table 28179bd5 @moorereason
Other
- Allow absolute paths for project imports beabc8d9 @bep #7910
- Regen docs helper 332b65e4 @bep
- Add module.replacements 173187e2 @bep #7904#7908
- Do not call CDN service invalidation when executing a dry run deployment 56a34350 @zemanel #7884
- Pass editor arguments from newContentEditor correctly d48a98c4 @bhavin192
- Bump github.com/spf13/cobra from 0.0.7 to 1.1.1 3261678f @anthonyfok
- Allow optional “nodeploy” tag to exclude deploy command from bin f465c5c3 @emhagman #7826
- Allow cascade _target to work with non toml fm 3400aff2 @gwatts #7874
- Allow getJSON errors to be ignored fdfa4a5f @bep #7866
- bump github.com/evanw/esbuild from 0.7.15 to 0.7.18 8cbe2bbf @dependabot[bot]
- Revert “Add benchmark for building docs site” b886fa46 @bep
- Avoid making unnecessary allocation 14bce18a @moorereason
- Add benchmark for building docs site 837e084b @moorereason
- Always show page number when 5 pages or less 08e4f9ff @moorereason #7523
- bump github.com/frankban/quicktest from 1.11.0 to 1.11.1 f033d9f0 @dependabot[bot]
- bump github.com/evanw/esbuild from 0.7.14 to 0.7.15 59fe2794 @dependabot[bot]
- Merge branch ‘release-0.76.5’ 62119022 @bep
- Render aliases even if render=link 79a022a1 @bep #7832
- Render aliases even if render=link ead5799f @bep #7832
- bump github.com/spf13/afero from 1.4.0 to 1.4.1 d57be113 @dependabot[bot]
- bump github.com/evanw/esbuild from 0.7.9 to 0.7.14 d0705966 @dependabot[bot]
- Update to Go 1.15 and Alpine 3.12 f5ea359d @ducksecops
- Install postcss v8 explicitly as it is now a peer dependency e9a7ebaf @anthonyfok
- Merge branch ‘release-0.76.3’ 49972d07 @bep
- Add merge helper c98132e3 @bep
- Add workaround for known language, but missing plural rule error 33e9d79b @bep #7798
- Update to github.com/tdewolff/minify v2.9.4" 6dd60fca @bep #7792
Fixes
Templates
- Fix reflection bug in merge 6d95dc9d @moorereason #7899
Other
Последнее обновление: October 30, 2020
Улучшить эту страницу
Улучшить эту страницу