gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.94k stars 7.54k forks source link

tpl/tplimpl: trim descriptions rather than just chomp #12901

Closed chalin closed 1 month ago

chalin commented 1 month ago

This PR proposes that we trim whitespace from both ends of descriptions rather than just chomp.

A bit of context for this change: since upgrading to Hugo 0.135.0, opentelemetry.io many page descriptions have been padded with (IMHO unnecessary) whitespace. If the Hugo templates are chomping the description text, it might as well just trim both ends of any whitespace, right? :)

/cc @svrnm @theletterf

theletterf commented 1 month ago

Zen and the Art of Hugo Bonsai Pruning! Like it!