tabs: treat groupid as unique if not set #537

This commit is contained in:
Sören Weber 2023-05-23 23:53:52 +02:00
parent 5178890342
commit 79711983fe
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1,6 +1,6 @@
{{- $context := .context }} {{- $context := .context }}
{{- $tabs := .tabs | default slice }} {{- $tabs := .tabs | default slice }}
{{- $groupid := .groupid | default "default" }} {{- $groupid := .groupid | default (partial "make-random-md5.hugo" $context) }}
{{- with $context }} {{- with $context }}
<div class="tab-panel" data-tab-group="{{ $groupid }}"> <div class="tab-panel" data-tab-group="{{ $groupid }}">
<div class="tab-nav"> <div class="tab-nav">