Skip to content

Commit

Permalink
Merge pull request #264 from kube-logging/avoid-empty-announcement-bar
Browse files Browse the repository at this point in the history
Don't show announcement bar if there are no announcements to show
  • Loading branch information
fekete-robert authored Nov 21, 2024
2 parents dcb0c30 + d0e92ff commit dee354e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/banner.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ if .Params.show_banner -}}
{{ $announcements := site.GetPage "announcements" -}}
{{ if $announcements -}}
{{ range $announcements.RegularPages }}
<div class="menu-banner">
{{ range $announcements.RegularPages }}
<div>{{ .Content }}</div>
{{ end -}}
</div>
{{ end -}}
{{ end -}}
{{ end -}}

0 comments on commit dee354e

Please sign in to comment.