Skip to content

Commit

Permalink
tabs: treat groupid as unique if not set #537
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed May 23, 2023
1 parent 5178890 commit 7971198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/shortcodes/tabs.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $context := .context }}
{{- $tabs := .tabs | default slice }}
{{- $groupid := .groupid | default "default" }}
{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $context) }}
{{- with $context }}
<div class="tab-panel" data-tab-group="{{ $groupid }}">
<div class="tab-nav">
Expand Down

0 comments on commit 7971198

Please sign in to comment.