Hugo

Latest version: v0.125.5

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

Scan your dependencies

Page 1 of 46

1.19

use .
use ../gohugoioTheme


Using the `use` directive, list all the modules you want to work on, pointing to its relative location. As in the example above, it's recommended to always include the main project (the ".") in the list.

With that you can start the Hugo server with that workspace enabled:


HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**"


The `--ignoreVendorPaths` flag is added above to ignore any of the vendored dependencies inside `_vendor`. If you don't use vendoring, you don't need that flag. But now the server is set up watching the files and directories in the workspace and you can see your local edits reloaded.

Breadcrumbs

We have added a new `.Ancestors` method on `Page` that walks up the tree to the home page. With this, breadcrumbs templates can be greatly simplified:

handlebars
<ol>
<ul>
{{- range .Ancestors.Reverse }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{- end }}
<li class="active" aria-current="page">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
</ul>
</ol>


The path to /public now available in PostCSS

So you can do `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes
its files.

Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode.

If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:


hugo server --renderToDisk
hugo server --renderStaticToDisk


Note

* modules: Make the module.workspace=off as default (note) 0d4b17d4 bep 10553
* release: Add a note section in release notes 3afaca75 bep
* helpers: Allow at signs in UnicodeSanitize (note) 2d217cba jmooring 10548
* Also consider wrapped errors when checking for file IsNotExist errors ad205987 bep 10534

Bug fixes

* If you use the legacy `libsass` transpiler in `toCSS` and uses the cached build to avoid having the extended version installed on the CI server, you need to rebuild those assets and commit them to source control (e.g. with `hugo --gc`).
* tpl/resources: Fix data race in ToCSS aa2c7241 bep 10542
* tocss: Fix unquote case with double quotes 5d5f0a23 septs 10555
* resources/js: Fix some import discrepancies between Hugo and ESBuild b54de1bd bep 10527
* parser/metadecoders: Fix spelling e0e63f35 lacamera

Improvements

* Adjust "you need the extended version" error message 180dfeba bep
* resource/page: Slight adjustment of Page.Ancestors eb0c8f9d bep 10567
* resource/page: Add Page.Ancestors 3a216186 septs 10567
* Annotate test assertions 71832328 jmooring
* hugolib: Exclude non-linkable pages from translations map 37ab1cf1 jmooring 9073
* Add HUGO_PUBLISHDIR to the Node environment 59af05ca bep 10554
* Revert "tpl/tplimpl: Use https in sitemap templates" 4989da65 jmooring
* tocss: Add some more test cases effa6a42 bep 10555
* Allow "fast render mode" even if --disableLiveReload is set d20d2651 bep 10561
* tocss: Add vars option 41a080b2 bep 10555
* modules: Improve "module workspace" not found error eda1e720 bep
* modules: Adjust watch logic vs workspace use definitions 330fa894 bep
* Add any configured Go Workspace file to the config watcher 6db52748 bep 10556
* parser/metadecoders: Remove superflous cast in test 17055d1f bep
* parser/metadecoders: Simplify nil check in Unmarshal 2a81a494 bep
* parser/metadecoders: Add empty /data JSON file as empty map e30d711c acclassic 8601
* tpl/openapi3: Wrap *kopenapi3.T 87e898a1 bep
* github: Use ruby/setup-ruby d8942698 bep 10517
* tpl/tplimpl: Use https in sitemap templates 3fd0b784 jmooring 10515

Dependency Updates

* build(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0 7874b968 dependabot[bot]

Documentation

* docs: Regen docs helper JSON 10bb29d7 bep
* tpl: Improve template funcs GoDoc cd1ed563 bep

Build Setup

* github: Update to Dart Sass 1.56.2 c9354d54 bep

[^1]: We're working on some bigger and even more exiting Hugo features that will be ready early next year. Stay tuned!

0.125.5

This release mirrors the [official v0.125.5 patch release for Hugo](https://github.com/gohugoio/hugo/releases/tag/v0.125.5). For the changes incorporated into Hugo with this release, please refer to the [release notes](https://github.com/gohugoio/hugo/releases/tag/v0.125.5) for Hugo v0.125.5.

The release can be installed and used with the

bash
pip install hugo


command on Linux (amd64, aarch64), macOS (amd64, arm64), and Windows (amd64).

Some new updates

* Wheels are now available for `s390x` and `ppc64le` architectures (https://github.com/agriyakhetarpal/hugo-python-distributions/pull/89, 5c7664c22998f208b14c2f0295fc4fc4b290e0ee)
* Build static binaries on Windows to avoid missing DLLs (https://github.com/agriyakhetarpal/hugo-python-distributions/pull/94)

**Full range of commits**: https://github.com/agriyakhetarpal/hugo-python-distributions/compare/v0.125.4...v0.125.5

0.125.4

This release mirrors the [official v0.125.4 patch release for Hugo](https://github.com/gohugoio/hugo/releases/tag/v0.125.4). For the changes incorporated into Hugo with this release, please refer to the [release notes](https://github.com/gohugoio/hugo/releases/tag/v0.125.4) for Hugo v0.125.4.

>[!NOTE]
> Hugo's license file was modified in https://github.com/gohugoio/hugo/commit/6b867972ec6df0ce79ddf614bbca039f4daa6060, which has been updated accordingly in this release. However, the license currently in adoption is still the Apache-2.0 license, which is the same as the one used for this project.

The release can be installed and used with the

bash
pip install hugo


command on Linux (amd64, aarch64), macOS (amd64, arm64), and Windows (amd64).

**Full range of commits**: https://github.com/agriyakhetarpal/hugo-python-distributions/compare/v0.125.3...v0.125.4

0.125.3

This release mirrors the [official v0.125.3 security patch release for Hugo](https://github.com/gohugoio/hugo/releases/tag/v0.125.3). For the changes incorporated into Hugo with this release, please refer to the [release notes](https://github.com/gohugoio/hugo/releases/tag/v0.125.3) for Hugo v0.125.3 and [Hugo's security model](https://gohugo.io/about/security/).

The release can be installed and used with the

bash
pip install hugo


command on Linux (amd64, aarch64), macOS (amd64, arm64), and Windows (amd64).

New changes in this release

* Do not rely on `pooch` and `tdqm` dependencies while building from source by agriyakhetarpal in https://github.com/agriyakhetarpal/hugo-python-distributions/pull/82. This removes both of these build-time dependencies and configures the Go toolchain to build Hugo from sources directly.

> [!NOTE]
> `pooch` and `tqdm` were build-time dependencies and therefore were used only for those building from source or using the source distribution. They have not been distributed as a part of PyPI wheels in this release or in previous releases.

* This additionally fixes 35, and therefore the binaries distributed by `hugo-python-distributions` contain the correct upstream commit hash and build date & time, fully matching other vendors such as Homebrew and official binaries.


**Full range of commits**: https://github.com/agriyakhetarpal/hugo-python-distributions/compare/v0.125.2...v0.125.3

0.125.2

This release mirrors the [official v0.125.2 patch release for Hugo](https://github.com/gohugoio/hugo/releases/tag/v0.125.2). For the changes incorporated into Hugo with this release, please refer to the [release notes](https://github.com/gohugoio/hugo/releases/tag/v0.125.2) for Hugo v0.125.2.

The release can be installed and used with the

bash
pip install hugo


command on Linux (amd64, aarch64), macOS (amd64, arm64), and Windows (amd64).

**Full range of commits**: https://github.com/agriyakhetarpal/hugo-python-distributions/compare/v0.125.1...v0.125.2

0.125.1

This release mirrors the [official v0.125.1 patch release for Hugo](https://github.com/gohugoio/hugo/releases/tag/v0.125.1). For the changes incorporated into Hugo with this release, please refer to the [release notes](https://github.com/gohugoio/hugo/releases/tag/v0.125.1) for Hugo v0.125.1.

The release can be installed and used with the

bash
pip install hugo


command on Linux (amd64, aarch64), macOS (amd64, arm64), and Windows (amd64).

**Full range of commits**: https://github.com/agriyakhetarpal/hugo-python-distributions/compare/v0.125.0...v0.125.1

Page 1 of 46

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.