hugo/docs/content/news/0.27-relnotes.md
2017-09-21 19:05:40 +02:00

6.5 KiB


date: 2017-09-11 title: "Hugo 0.27: Fast and Flexible Related Content!" description: "Makes it easy to add "See Also" sections etc. to your site." categories: ["Releases"] images:

  • images/blog/hugo-27-poster.png

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