{{/* Generic GitHub-style tabs component Usage: {{ partial "components/generic-tabs.html" (dict "id" "my-tabs" "tabs" $tabs) }} Where $tabs is an array of dictionaries with "title" and "content" keys: $tabs := slice (dict "title" "Tab 1" "content" "Content for tab 1") (dict "title" "Tab 2" "content" "Content for tab 2") */}} {{ $id := .id | default (printf "tabs-%s" (substr (.tabs | jsonify | md5) 0 8)) }} {{ $tabs := .tabs | default (slice (dict "title" "Error" "content" "No tabs provided")) }}