Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/gohugoio/hugo from 0.108.0 to 0.109.0 in /build #1593

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 26, 2022

Bumps github.com/gohugoio/hugo from 0.108.0 to 0.109.0.

Release notes

Sourced from github.com/gohugoio/hugo's releases.

v0.109.0

Hugo v0.109.0 is the last release of 2022 – and with that we're wishing all of you a very merry Christmas and a prosperous new year[^1].

Notable new features

Pass variables to SCSS/SASS

Hugo has had great SCSS/SASS support, but passing variables (e.g. theme colours from config) down to the transpiler has been much harder than it should.

In Hugo v0.109.0 we added a new vars option and you can finally just do:

{{ $vars := dict "color1" "blue" "color2" "green" "font_size" "24px" }}
{{ $opts := (dict "transpiler" "dartsass" "outputStyle" "compressed" "vars" $vars ) }}
{{ $r := resources.Get "scss/main.scss" | toCSS $opts }}

And then in the SCSS file:

@use "hugo:vars" as v;
p {
color: v.$color1;
font-size: v.$font-size;
}

More examples here.

Hugo Module Workspaces

Workspace support was added in Go 1.18, and in this release Hugo finally gets solid support for it.

A common use case for a workspace is to simplify local development of a site with its theme modules.

A workspace can be configured in a *.work file and activated with the module.workspace setting, which for this use is commonly controlled via the HUGO_MODULE_WORKSPACE OS environment variable.

See the hugo.work file in the Hugo Docs repo for an example:

go 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:

... (truncated)

Commits
  • 47b12b8 releaser: Bump versions for release of 0.109.0
  • 180dfeb Adjust "you need the extended version" error message
  • 10bb29d docs: Regen docs helper JSON
  • eb0c8f9 resource/page: Slight adjustment of Page.Ancestors
  • 3a21618 resource/page: Add Page.Ancestors
  • 7874b96 build(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0
  • 7183232 Annotate test assertions
  • 37ab1cf hugolib: Exclude non-linkable pages from translations map
  • 59af05c Add HUGO_PUBLISHDIR to the Node environment
  • 4989da6 Revert "tpl/tplimpl: Use https in sitemap templates"
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 26, 2022
@aj-stein-nist
Copy link
Contributor

@dependabot rebase

1 similar comment
@aj-stein-nist
Copy link
Contributor

@dependabot rebase

Dependabot couldn't find the original pull request head commit, 6e86f78.
@aj-stein-nist aj-stein-nist merged commit 6ba5bcf into develop Jan 11, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/build/develop/github.com/gohugoio/hugo-0.109.0 branch January 11, 2023 22:19
aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this pull request Feb 6, 2023
…stgov#1593)

Dependabot couldn't find the original pull request head commit, 6e86f78.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this pull request Jun 29, 2023
…stgov#1593)

Dependabot couldn't find the original pull request head commit, 6e86f78.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this pull request Jul 10, 2023
…stgov#1593)

Dependabot couldn't find the original pull request head commit, 6e86f78.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant