Skip to content

Releases: gohugoio/hugo

v0.28

25 Sep 08:02
@bep bep
Compare
Choose a tag to compare

Hugo 0.28 brings blistering fast and native syntax highlighting from Chroma (fb33d828 @bep #3888). A big thank you to Alec Thomas for taking on this massive task of porting the popular python highlighter Pygments to Go.

See the Updated Documentation for more information about how this works.

Worth mentioning is also the liveReloadPort flag on hugo server, which makes it possible to do "live reloads" behind a HTTPS proxy, which makes for very cool remote customer demos.

One example would be a Hugo server running behind a ngrok tunnel:

ngrok http 1313

Then start the Hugo server with:

hugo server -b https://youridhere.ngrok.io --appendPort=false --liveReloadPort=443 --navigateToChanged

The navigateToChanged flag is slightly unrelated, but it is super cool ...

This release represents 15 contributions by 2 contributors to the main Hugo code base.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 9 contributions by 7 contributors. A special thanks to @bep, @i-give-up, @muhajirframe, and @icannotfly for their work on the documentation site.

Hugo now has:

Notes

  • Hugo now uses Chroma as new default syntax highlighter. This should in most cases work out-of-the box or with very little adjustments. But if you want to continue to use Pygments, set pygmentsUseClassic=true in your site config.
  • We now add a set of "no cache" headers to the responses for hugo server, which makes the most sense in most development scenarios. Run with hugo server --noHTTPCache=false to get the old behaviour.

Enhancements

Templates

Other


Automated with GoReleaser
Built with go version go1.9 linux/amd64

v0.27.1

13 Sep 11:15
@bep bep
Compare
Choose a tag to compare

This fixes a regression introduced in Go 1.9 which lead to HTML in shortcodes in multi output Hugo sites being wrongly escaped in some cases.


Automated with GoReleaser
Built with go version go1.9 linux/amd64

v0.27

11 Sep 05:42
@bep bep
Compare
Choose a tag to compare

Hugo 0.27comes with fast and flexible Related Content (3b4f17bb @bep #98). To add this to your site, put something like this in your single page template:

{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>See Also</h3>
<ul>
	{{ range . }}
	<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
	{{ end }}
</ul>
{{ end }}

The above translates to list the five regular pages mostly related to the current page. See the Related Content Documentation for details and configuration options.

This release represents 37 contributions by 9 contributors to the main Hugo code base.

@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason, @yihui, and @oneleaftea for their ongoing contributions.

And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 44 contributions by 30 contributors. A special thanks to @bep, @sdomino, @gotgenes, and @digitalcraftsman for their work on the documentation site.

Hugo now has:

Notes

  • We now only strip p tag in markdownify if there is only one paragraph. This allows blocks of paragraphs to be "markdownified" 33ae10b6 @bep #3040

Enhancements

Templates

Output

  • Improve the base template (aka baseof.html) identification 0019ce00 @bep

Core

Other

Fixes

Output


Automated with GoReleaser
Built with go version go1.9 linux/amd64

v0.26

07 Aug 07:32
@bep bep
Compare
Choose a tag to compare

Hugo 0.26 is the Language Style Edition.

This release brings a choice of AP Style or Chicago Style Title Case (8fb594bf #989). You can also now configure Blackfriday to render « French Guillemets » (cb9dfc26 #3725). To enable French Guillemets, put this in your site config.toml:

[blackfriday]
angledQuotes = true
smartypantsQuotesNBSP = true

Oh, and this release also fixes it so you should see no ugly long crashes no more when you step wrong in your templates (794ea21e).

Hugo 0.26 represents 46 contributions by 11 contributors to the main Hugo code base.

@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @anthonyfok, @jorinvo, and @digitalcraftsman for their ongoing contributions. And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 838 contributions by 30 contributors. A special thanks to @rdwatters, @bep, @digitalcraftsman, and @budparr for their work on the documentation site.

This may look like a Waiting Sausage, a barbecue term used in Norway for that sausage you eat while waiting for the steak to get ready. And it is: We're working on bigger and even more interesting changes behind the scenes. Stay tuned!

Hugo now has:

Notes

  • sourceRelativeLinks has been deprecated for a while and has now been removed. 9891c0fb @bep #3766
  • The title template function and taxonomy page titles now default to following the AP Stylebook for title casing. To override this default to use the old behavior, set titleCaseStyle to Go in your site configuration. 8fb594bf @bep #989

Enhancements

Templates

Core

Other

Fixes

Templates

Other


Automated with GoReleaser
Built with go version go1.8.3 darwin/amd64

v0.25.1

10 Jul 07:07
@bep bep
Compare
Choose a tag to compare

This is a bug-fix release with a couple of important fixes.

Hugo now has:

Fixes

  • Fix union when the first slice is empty dbbc5c48 @bep #3686
  • Navigate to changed on CREATE When working with content from IntelliJ IDE, like WebStorm, every file save is followed by two events: "RENAME" and then "CREATE". 7bcc1ce6 @miltador
  • Final (!) fix for issue with escaped JSON front matter 7f82b41a @bep #3682
  • Fix issue with escaped JSON front matter 84db6c74 @bep #3682

Automated with GoReleaser
Built with go version go1.8.3 darwin/amd64

v0.25

07 Jul 07:40
@bep bep
Compare
Choose a tag to compare

Hugo 0.25 is the Kinder Surprise: It automatically opens the page you're working on in the browser, it adds full AND and OR support in page queries, and you can now have templates per language.

Hugo Open on Save

If you start with hugo server --navigateToChanged, Hugo will navigate to the relevant page on save (see animated GIF). This is extremely useful for site-wide edits. Another very useful feature in this version is the added support for AND (intersect) and OR (union) filters when combined with where.

Example:

{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
{{ $pages := $pages | intersect (where .Site.RegularPages "Params.images" "!=" nil) }}

The above fetches regular pages not of page or about type unless they are pinned. And finally, we exclude all pages with no images set in Page params.

This release represents 36 contributions by 12 contributors to the main Hugo code base. @bep still leads the Hugo development with his witty Norwegian humor, and once again contributed a significant amount of additions. But also a big shoutout to @yihui, @anthonyfok, and @kropp for their ongoing contributions. And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.

Hugo now has:

Enhancements

Templates

Output

  • Support templates per site/language. This is for both regular templates and shortcode templates. aa6b1b9b @bep #3360

Core

Other

Fixes

Templates

Other


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.24.1

24 Jun 08:39
@bep bep
Compare
Choose a tag to compare

This release fixes some important archetype-related regressions from the recent Hugo 0.24-relase.

Fixes

Enhancements


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.24

21 Jun 12:08
@bep bep
Compare
Choose a tag to compare

This is The Revival of the Archetypes!

"A feature that could be the name of the next Indiana Jones movie deserves its own release," says @bep.

Hugo now handles the archetype files as Go templates. This means that the issues with sorting and lost comments are long gone. This also means that you will have to supply all values, including title and date. But this also opens up a lot of new windows.

A fictional example for the section newsletter and the archetype file archetypes/newsletter.md:

---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---

**Insert Lead paragraph here.**

<!--more-->

## New Cool Posts

{{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }}
* {{ .Title }}
{{ end }}

And then create a new post with:

hugo new newsletter/the-latest-cool.stuff.md

Note: the site will only be built if the .Site is in use in the archetype file, and this can be time consuming for big sites.

Hot Tip: If you set the newContentEditor configuration variable to an editor on your PATH, the newly created article will be opened.

The above newsletter type archetype illustrates the possibilities: The full Hugo .Site and all of Hugo's template funcs can be used in the archetype file.

Also, Hugo now supports archetype files for all content formats, not just markdown.

Hugo now has:

Notes

  • Archetype files now need to be complete, including title and date.
  • The -f (format) flag in hugo new is removed: Now use the archetype files as is.

Enhancements

Fixes


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.23

16 Jun 08:14
@bep bep
Compare
Choose a tag to compare

Hugo 0.23 is mainly a release that handles all the small changes needed to get Hugo moved to a GitHub organisation: gohugoio, but it also contains a couple of important fixes that makes this an update worth-while for all.

Hugo now has:

Fixes

GitHub organisation related changes


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.22.1

13 Jun 12:43
@bep bep
Compare
Choose a tag to compare

Hugo 0.22.1 fixes a couple of issues reported after the 0.22 release Monday. Most importantly a fix for detecting regular subfolders below the root-sections.

Also, we forgot to adapt the permalink settings with support for nested sections, which made that feature less useful than it could be.

With this release you can configure permalinks with sections like this:

First level only:

[permalinks]
blog = ":section/:title"

Nested (all levels):

[permalinks]
blog = ":sections/:title"

Fixes


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64