{{ template "widget-base.html" . }}

{{ define "widget-content-classes" }}widget-content-frameless{{ end }}

{{ define "widget-content" }}
<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>
        {{ end }}
    </div>
</div>

<div class="widget-group-contents">
{{ range $i, $widget := .Widgets }}
    <div class="widget-group-content{{ if eq $i 0 }} widget-group-content-current{{ end }}">{{ .Render }}</div>
{{ end }}
</div>

{{ end }}
