{{ $class := .Get 0 | default (.Get "class") }} {{ $title := .Get "title" }} {{ $url := .Get "url" }} {{ $target := partial "paige/target.html" (dict "page" .Page "url" $url) }} {{ if not $class }} {{ errorf "layouts/shortcodes/paige/icon.html: no class" }} {{ end }} {{/* The markup below cannot be indented due to nested shortcodes within Markdown. */}} {{- with $url -}} {{- end -}} {{ with $title }}{{ . }}{{ end }} {{- if $url -}} {{- end -}}