Hugo

Latest version: v0.127.0

Safety actively analyzes 640549 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 47

0.113.0

This release adds TLS/HTTPS support to `hugo server` (see cf38c73f and 11064 for details) entirely backed by [mkcert](https://github.com/FiloSottile/mkcert). We still default to `http` which is recommended and good enough for 99% of the Hugo use, but there are [some situations](https://web.dev/when-to-use-local-https/) where you really need it.

We have added a new sub command and some new flags to `hugo server` to enable this:


Installs a local CA in the system root store. You only need to do this once.
hugo server trust

Generates locally-trusted certificates (if not already created) and starts the server with TLS/HTTPS enabled.
hugo server --tlsAuto


Note that we just delegate to [mkcert](https://github.com/FiloSottile/mkcert) using its default settings, so all of their documentation is relevant.

Also note that this is currently only supported for Linux, MacOS and Windows. And if you install on Linux using Snap, you will currently get an access denied error when running `hugo server trust`. A workaround for that, or if you need to use some of mkcert's advanced options, is to use mkcert directly to install the local CA:


go install filippo.io/mkcertlatest
mkcert -install


You can then start the server with `hugo server --tlsAuto`.

If you have obtained the TLS certificate and key file by other means, you can use the `--tlsCertFile` and `--tlsKeyFile` flags. When `--tlsAuto` or `--tlsCertFile` and `--tlsKeyFile` is set and no `--baseURL` is provided as a flag, the server is started with TLS and `https` as the protocol.

0.112.7

What's Changed

* Fix menuItem.URL when pageRef is not set 5e5ce00d bep 11062
* Don't inject livereload script on hugo -w a191b38a bep 11061
* markup: Fix typo in function and struct names 382c726e alexandear
* all: Replace deprecated ioutil with io and os 4c46f940 alexandear

0.112.6

* github: Fix Windows build 06faee5b bep 11052
* Fix potential deadlock in ByParam 32585696 bep 11039
* commands: Add --lang to hugo config 0ef29528 bep 11057
* Make sure any default mounts show up in "hugo config" e3ae8f02 bep 11040
* tpl/tplimpl: Use .Language.LanguageCode in built-in templates ff77a927 jmooring
* Fail on invalid defaultContentLanguage 9cdca1f9 bep 11044
* Avoid panic in invalid language config 6462eecf bep 11046
* Don't panic on empty yaml config params a7d6b141 bep 11047
* Prevent double escaping of image alt-text in Goldmar typographer 3f497d49 bep 11045
* deps: Update github.com/tdewolff/minify/v2 v2.12.5 => v2.12.6 409c6c3f jmooring

0.112.5

What's Changed

* Fix it so languageCode on top level config still works e3dfc76f bep 11037

0.112.4

* Fix Processed images count regression for multiple languages fd099331 bep 11002
* Fix --renderStaticToDisk regression 8f293a18 bep 11026
* commands: Add the common build flags to the config commands 51d0a0ab bep 11018
* commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod 43f1282e bep 11018
* Don't create the public folder unless needed e96cdfe9 bep 11031
* commands: Fail the build when no config file or config dir 273d9f69 bep 11019
* langs: Remove the Language.Params deprecation message for now a6257d8a bep 11025
* Add language.LanguageCode 6c2db0df bep 11027
* commands: Re-introduce the -f shorthand for hugo new site 901cd970 bep 11015
* commands: Move the --format flag to only the commands that support it f86b5f70 bep 11022

Documentation

* docs: Regenerate CLI docs 20ea2e0c bep
* docs: Regen CLI docs ffdbce57 bep

0.112.3

What's Changed

* Fix regression when loading config -e is empty or HUGO_ENV or HUGO_ENVIRONMENT is set 231374a1 bep 11013

Page 9 of 47

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.