Restore title-url functionality on group titles

This commit is contained in:
Svilen Markov
2024-11-17 09:36:46 +00:00
parent 6af666b58c
commit 79779eb721
3 changed files with 21 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
<div class="widget-group-header">
<div class="widget-header gap-20">
{{ range $i, $widget := .Widgets }}
<button class="widget-group-title{{ if eq $i 0 }} widget-group-title-current{{ end }}">{{ $widget.Title }}</button>
<button class="widget-group-title{{ if eq $i 0 }} widget-group-title-current{{ end }}"{{ if ne "" .TitleURL }} data-title-url="{{ .TitleURL }}"{{ end }}>{{ $widget.Title }}</button>
{{ end }}
</div>
</div>