{%- comment -%} Renders one social link as an icon. Usage: {% include social-icon.html link=link %} Icon choice: link.icon if present, else link.name — downcased with spaces, dots and dashes stripped. Unmatched names fall back to a circled first initial. {%- endcomment -%} {%- assign raw = include.link.icon | default: include.link.name -%} {%- assign key = raw | downcase | remove: '.' | remove: ' ' | remove: '-' -%} {% case key %} {% when 'github' %} {% when 'linkedin' %} {% when 'x' or 'twitter' %} {% when 'bluesky' %} {% when 'orcid' %} {% when 'googlescholar' or 'scholar' %} {% when 'youtube' %} {% when 'instagram' %} {% when 'mastodon' %} {% when 'email' or 'mail' %} {% when 'academiaedu' or 'academia' %} Academia.edu {% when 'researchgate' %} ResearchGate {% when 'facebook' %} Facebook {% when 'redbubble' %} Redbubble {% when 'atlasobscura' %} Atlas Obscura {% when 'proteanrobotics' or 'protean' or 'business' or 'company' %} Protean Robotics {% when 'solcartographer' or 'sol' or 'music' or 'musicproducer' %} Sol Cartographer {% else %} {% endcase %}