Hugo

Latest version: v0.145.0

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

Scan your dependencies

Page 6 of 54

0.134.1

What's Changed

* Fix stray end p tag in Obsidian callout titles 66a3a1100 bep 12828
* Make ContentWithoutSummary return Content when summary is fetched from front matter 8f2eac019 bep 12822

0.134.0

Hugo v0.134.0 brings render hooks for tables, ContentWithoutSummary, scoped content render and Obsidian style callout alerts.

ContentWithoutSummary and scoped content render

This release finally brings a [`Page.ContentWithoutSummary`](https://gohugo.io/methods/page/contentwithoutsummary/) method. This has been a long sought after method where the use case is obvious: render the summary with a _more_ button that renders the ... content without summary. To enable this we have reimplemented the content summary handling in Hugo. This consolidates the 3 [summary types](https://gohugo.io/content-management/summaries/#comparison) (`auto`, `manual` and `frontmatter`) – they are now all HTML. This is a slightly breaking change (`manual` was plain text before), but the new behaviour should be much less confusing and easier to handle in the templates. If you want plain text, pipe it into `plainify`: `{{ .Summary | plainify }}`.

Before this release there was one instance of `.Content` for a given page, it was e.g. not possible to render a page's content slightly different (e.g. different heading levels) on the list pages or the home page. This release anables that with a new `Page.Markup` with an optional `scope` argument.

In the list template you would do something like this:

handlebars
{{ range .Pages | first 5 }}
{{ with .Markup "list" }}
{{ with .Render }}
<div>
<li>{{ .Summary }}</li>
<li>{{ .ContentWithoutSummary }}</li>
<li>{{ .WordCount }}</li>
<li>etc ...</li>
</div>
{{ end }}
{{ end }}
{{ end }}


You can think of the custom scope `list` as a cache key: Multiple invocations on the same page with the same scope will give the same return value. You can now pass down some data or configuration to in `.Page.Store` to the templates that render this markup (shortcodes, render hooks), or you can use the new global `hugo.Context.MarkupScope` function made for this purpose:

handlebars
{{ if eq hugo.Context.MarkupScope "list" }}
{{/* Render some list markup. */}}
{{ else }}
{{/* default */}}
{{ end }}

Render hooks for tables

This has been a long sought after feature. Now you can have full control over how you render your Markdown tables with [table render hooks](https://gohugo.io/render-hooks/tables).

Obsidian style callout alerts

Hugo `v0.133.0` added [blockquote render hooks](https://gohugo.io/render-hooks/blockquotes/) with GitHub styled [alerts](https://gohugo.io/render-hooks/blockquotes/#alerts). We have since then gotten some feedback about extended alert syntax in [Obsidian](https://help.obsidian.md/Editing+and+formatting/Callouts#Change+the+title), and in Hugo `v0.134.0` we now support both.

Bug fixes

* github: Try to fix "no space left on device" on MacOS 96afea4ac bep
* Fix deprecation warning for resources.ToCSS 8fb933550 deining
* output: Fix docshelper template lookup order for AMP pages 1ecd0596a jmooring 12797

Improvements

* markup/goldmark/blockquotes: Improve some tests 504a23184 bep
* Add support for Obsidian type blockquote alerts e651d2980 bep 12805 12801
* Rename hstring.RenderedHTML => hstring.HTML 469124823 bep
* Make all renderhook Text methods return template.HTML 6d97ee711 bep
* Add Markdown render hooks for tables f738669a4 bep 9316 12811
* create/skeletons: Clean up lang attribute in base template b63f24adc jmooring
* tpl/resources: Improve resources.Concat error message a3684c836 jmooring 7428
* tpl: Trim whitespace from google_analytics.html 53a8de21b chalin
* Add Page.Contents with scope support 37609262d bep 8680 12761 12778 716
* hugolib: Add a test for overriding _internal templates 371246de2 bep

Dependency Updates

* deps: Upgrade github.com/bep/golibsass v1.1.1 => v1.2.0 2b5c335e9 bep 12649
* build(deps): bump github.com/evanw/esbuild from 0.23.0 to 0.23.1 12a28ef77 dependabot[bot]
* build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.2 to 2.2.3 4ded32d07 dependabot[bot]

Documentation

* Update Dockerfile ae3815898 offgrid88

0.133.1

Bug fixes

* Fix missing method NameNormalized panic 5f667f879 bep 12795
* config: Fix pagination deprecation messages 7792392a6 jmooring
* deps: Upgraded github.com/bep/imagemeta v0.8.0 => v0.8.1 e1becf1df bep 12793

0.133.0

What's Changed

* Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder 01008ba51 bep 12776
* build(deps): bump gocloud.dev from 0.38.0 to 0.39.0 53c0ddfcb dependabot[bot]
* deps: Upgrade github.com/tetratelabs/wazero v1.7.4-0.20240805170331-2b12e189eeec => v1.8.0 133eeafeb bep
* Upgrade to Go 1.23 2168c5b12 bep 12763

0.132.2

What's Changed

* markup/goldmark/blockquotes: Fix handling of lower/mixed case GitHub alerts d72607adb bep 12767
* tpl/transform: Don't run ToMath tests in parallel 83235262d bep 12765
* resources: Add URI GetRemote error 5220d371e 0xB10C
* loggers: Omit map nil check b2d4f67a8 bep
* github: Add workflow_dispatch to the Docker workflow a99716bf0 bep 12753
* github: Simplify Docker workflow / only trigger on new tags 98aa53648 bep 12753
* github: Simplify Docker workflow 9231a7f11 bep 12753

0.132.1

What's Changed

* github: Adjust image workflow 77304a3cd bep 12753
* Fix nilpointer regression with empty blockquotes bef9214e1 bep 12756

Page 6 of 54

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.