don't break when there's no announcement

This commit is contained in:
pluja 2024-02-27 21:46:19 +01:00
parent 19be5705f7
commit d706c68499

View File

@ -8,10 +8,13 @@
<line x1="12" y1="8" x2="12.01" y2="8" />
<polyline points="11 12 12 12 12 16 13 16" />
</svg>
{{if .Announcement}}
<div class="flex flex-col justify-center items-center text-center">
<span class="font-bold">{{.Announcement.Title}}</span>
<span class="text-xs lowercase">{{.Announcement.Body}}</span>
</div>
{{end}}
</a>
</div>