{{ $username := .Get 0 }} {{ $url := .Get 1 }} {{ if not $url }} {{ errorf "mention shortcode requires both username and URL parameters. Usage: {{< mention \"username\" \"https://example.com/@username\" >}}" }} {{ end }} @{{ strings.TrimPrefix "@" $username }}