Merge commit 'efc0b1bb6c6564f54d596467dbc6a18cb206954e'

This commit is contained in:
Bjørn Erik Pedersen
2019-11-11 11:46:22 +01:00
22 changed files with 59 additions and 39 deletions

View File

@@ -1,12 +1,12 @@
---
date: 2019-10-21
title: "0.59.0"
description: "0.59.0"
title: "Hugo 0.59.0"
description: "Set image target format and background color, and more ..."
categories: ["Releases"]
---
The timing of this release is motivated by getting the copies of the docs repositories in synch, now fully "Hugo Modularized". But it also comes with some very nice additions:
The timing of this release is motivated by getting the copies of the docs repositories in synch, now fully "Hugo Modularized". But it also comes with some very nice additions:
It is now possible to set the target format and the background fill color when processing images, e.g.:
@@ -22,6 +22,12 @@ Another useful addon is the `$pages.Next` and `$pages.Prev` methods on the core
{{with .Site.RegularPages.Next . }}{{.RelPermalink}}{{end}}
```
The above is a functionally equivalent (but slightly slower) variant of:
```
{{with .Next }}{{.RelPermalink}}{{end}}
```
See [Pages Methods](https://gohugo.io/variables/pages/) for more information.