{{ $illustration := .Page.Resources.GetMatch (printf "**%s*" (.Get 0)) }} {{ $title := .Get 1 }} {{ $side := .Get 2 }}
{{ if eq $side "right" }}
{{ if $title }}

{{ $title }}

{{ end }} {{ .Inner }}
{{ if $illustration }}
{{ end }} {{ else }} {{ if $illustration }}
{{ end }}
{{ if $title }}

{{ $title }}

{{ end }} {{ .Inner }}
{{ end }}