{{/* Platform icon rendering Parameters: - platform: platform name (huggingface, github, etc.) - config: platform configuration dict - hb_id: Hugo Blox unique identifier for the embed */}} {{- $platform := .platform -}} {{- $config := .config -}} {{- $hb_id := .hb_id -}} {{- if eq $platform "huggingface" -}}
{{ partial "functions/get_icon" (dict "name" "brands/huggingface" "attributes" "class=\"w-6 h-6 text-white\"") }}
{{- else if eq $platform "github" -}}
{{ partial "functions/get_icon" (dict "name" "brands/github" "attributes" "class=\"w-6 h-6 text-white\"") }}
{{- else -}} {{/* Custom/generic embeds use neutral styling */}}
{{ partial "functions/get_icon" (dict "name" ($config.icon | default "globe-alt") "attributes" "class=\"w-5 h-5 text-white\"") }}
{{- end -}}