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.105.0 to 0.108.0 in /build #65

Conversation

dependabot[bot]
Copy link

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

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

Release notes

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

v0.108.0

With Hugo v0.108.0 you can render standalone Markdown images without a surrounding paragraph. Both the HTML- and CommonMark-specification defines image as an inline element. For Markdown, this has meant that if you put an image on its own (not inlined in another paragraph), it would be wrapped in <p></p> tags, even if you provide your own Render Hook Template.

Now you can get by this annoyance by setting markup.goldmark.parser.wrapStandAloneImageWithinParagraph = false

[markup]
  [markup.goldmark]
    [markup.goldmark.parser]
      wrapStandAloneImageWithinParagraph = false
      [markup.goldmark.parser.attribute]
        block = true

In the above we have also enabled attribute support for Markdown blocks to illustrate another nice side effect of this; it's now possible to use Markdown attributes (e.g. CSS classes) on standalone images:

This is an inline image: ![Inline Image](https://github.com/gohugoio/hugo/blob/HEAD/inline.jpg). Some more text.

{.blue}

The images in the above Markdown example would, given the hook template below, be rendered wrapped in a figure element with the blue CSS class applied in the latter example.

{{ if .IsBlock }}<figure class="{{ .Attributes.class }}"><img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" /></figure>
{{ else }}<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />{{ end }}

Two new fields are added to the render context passed to image render hooks:

Bug fixes

  • common/hugio: Fix multiWriteCloser.Close 5067775a @​bep #10505
  • tpl/collections: Fix some index cases where the indices given is a slice and be more lenient with nil inputs d373774c @​bep #10489

Improvements

  • Make the hugo env non verbose output slightly more verbose f97544a8 @​bep
  • Add dart-sass-embedded version info to hugo env -v d8efe085 @​bep
  • tpl/embedded: Make Open Graph's series optional b82b547a @​razonyang
  • dartsass: Add sourceMapIncludeSources option e93138df @​bep
  • github: Update Dart Sass Embedded to 1.56.1 7d16c3c0 @​bep
  • markup/goldmark: Add removeSurroundingParagraph for Markdown images 63126c63 @​bep #8362 #10492 #10494 #10501
  • tpl/tplimpl: Allow alternate comment syntax 0b976d2b @​jmooring #10495
  • resources: Increase timeout for http.Client a49e51fd @​dirtymew #10478

... (truncated)

Commits
  • a0d64a4 releaser: Bump versions for release of 0.108.0
  • f97544a Make the hugo env non verbose output slightly more verbose
  • d8efe08 Add dart-sass-embedded version info to hugo env -v
  • f5b5b71 deps: Upgrade github.com/bep/godartsass v0.15.0 => v0.16.0
  • b82b547 tpl/embedded: Make Open Graph's series optional
  • c9f2fa2 Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
  • da670c3 Squashed 'docs/' changes from 4c1309cdf..2201ac0e5
  • 5067775 common/hugio: Fix multiWriteCloser.Close
  • 50549c8 build(deps): bump github.com/getkin/kin-openapi from 0.109.0 to 0.110.0
  • de9c554 docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
  • 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)

Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo) from 0.105.0 to 0.108.0.
- [Release notes](https://github.com/gohugoio/hugo/releases)
- [Changelog](https://github.com/gohugoio/hugo/blob/master/hugoreleaser.toml)
- [Commits](gohugoio/hugo@v0.105.0...v0.108.0)

---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 7, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Dec 23, 2022

Superseded by #69.

@dependabot dependabot bot closed this Dec 23, 2022
@dependabot dependabot bot deleted the dependabot/go_modules/build/develop/github.com/gohugoio/hugo-0.108.0 branch December 23, 2022 12:10
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.

0 participants