Hugo

Latest version: v0.139.0

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

Scan your dependencies

Page 1 of 51

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.139.0

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

The release can be installed and used with the

bash
pip install hugo


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

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

0.138.0

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

The release can be installed and used with the

bash
pip install hugo


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

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

0.137.1

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

The release can be installed and used with the

bash
pip install hugo


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

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

0.137.0

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

>[!TIP]
> This release slightly differs from the upstream Hugo 0.137.0 release, which has [dropped](https://github.com/gohugoio/hugo/issues/12994) the [deployment feature](https://gohugo.io/hosting-and-deployment/hugo-deploy/) to publish smaller binaries, while [separating them out](https://github.com/gohugoio/hugo/pull/12995) into another set. We shall continue to provide this feature, i.e., in the form of the "extended" + "withdeploy" edition with these wheels despite the cost of moderately larger binaries for the sake of greater simplicity when publishing wheels to https://pypi.org/project/hugo/.


Release notes

* 🧑‍💻 Add `withdeploy` build tag and bump to Hugo 0.137.0 by agriyakhetarpal in https://github.com/agriyakhetarpal/hugo-python-distributions/pull/90

<hr>

The release can be installed and used with the

bash
pip install hugo


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

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

0.136.5

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

The release can be installed and used with the

bash
pip install hugo


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

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

Page 1 of 51

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.