{{ $currentPage := . }} {{ $icons := .Site.Params.iconOrder | default (slice "Twitter" "GitHub" "Email" "Facebook" "GitLab" "Instagram" "LinkedIn" "YouTube") }}
{{ range $icons }} {{ $icon := anchorize . }} {{ if isset $currentPage.Site.Params $icon }} {{ end }} {{ end }}