Skip to content

Commit ca61252

Browse files
committed
Add comments for future me
1 parent fce70d8 commit ca61252

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

layouts/partials/version-banner.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- Check if the page has a banner: "string" set if yes, display a banner. -->
44
<!-- safeHTML means you can include HTML. If you need to escape double quotes, use \" -->
55
<!-- For example: banner: "Go <a href=\"/refguide9/moving-from-8-to-9/\">here</a>" -->
6+
<!-- Extra check for empty banner added to allow empty banners in front matter to get around bug in Hugo 0.123.0 (https://github.com/gohugoio/hugo/issues/12465) which is not fixed until 0.143.0 (https://github.com/gohugoio/hugo/releases/tag/v0.143.0) -->
67
{{ with .Params.banner }}
78
{{ if ne . "" }}
89
<div class="pageinfo pageinfo-warning">

0 commit comments

Comments
 (0)