Skip to content

@bep bep released this Nov 27, 2020 · 2 commits to master since this release

Hugo 0.79.0 is a small, but useful release. You can now set custom .Params in your menu configuration, and you can now also override deeply nested snake_cased configuration variables with OS environment variables. Other than that we have refreshed all the core upstream dependencies. A special thanks to @alecthomas (some new Chroma lexers and fixes) and @evanw (ESBuild).

This release represents 33 contributions by 8 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout @AdamKorcz, and @davidejones 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 13 contributions by 11 contributors. A special thanks to @Valac01, @bep, @mhansen, and @chanjarster for their work on the documentation site.

Hugo now has:

Enhancements

Templates

Other

Fixes

Other

Assets 28

@bep bep released this Nov 13, 2020 · 28 commits to master since this release

This is a bug-fix release with a couple of important fixes.

Assets 28

@bep bep released this Nov 3, 2020 · 50 commits to master since this release

This release finally brings full Hugo Modules support to js.Build, curtsy of the new plugin API in the really, really fast ESBuild by @evanw.

Some notes on the improvements in this release:

  • Now js.Build fully supports the virtual union file system in Hugo Modules. Any import inside your JavaScript components will resolve starting from the top component mount inside /assets with a fallback to the traditional "JS way" (node_modules etc.)
  • You can now pass configuration data from the templates to your scripts via a new params option.
  • Hugo now writes a jsconfig.js file inside /assets (you can turn it off) with import mappings to help editors such as VS Code with intellisense/navigation, which is especially useful when there is no common root and the source lives inside some temporary directory.
  • We have also improved the build errors you get from js.Build. In server mode you will get a preview of the failing lines and in the console you will get a link to the location.

Read more about this in the documentation, but a short usage example would look like:

In the template:

{{ $js := resources.Get "js/main.js" | js.Build (dict "params" (dict "api" "https://example.org/api" ) }}

And then in a JavaScript component:

import * as params from '@params';

// Wil resolve to one of `hello.{js,ts,tsx,jsx}` inside `assets/my/module`.
import { hello } from 'my/module/hello';

var api = params.api;

hello();

Changes

Assets 28

@bep bep released this Oct 30, 2020 · 60 commits to master since this release

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 mage install -tags nodeploy if you don't need the hugo deploy feature.
  • Remote getJSON errors can now be ignored by adding ignoreErrors = ["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 do env 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:

Enhancements

Templates

Other

Fixes

Templates

Other

Assets 28

@bep bep released this Oct 12, 2020 · 101 commits to master since this release

This is a bug-fix release with a couple of important fixes.

Assets 28
You can’t perform that action at this time.