{{ $type := index .Params "type" }}
{{ if eq $type "youtube" }} {{/* copy pasted from hugo source code */}}
{{ else }} {{ end }} {{ with .Get "title" }}

{{ . | markdownify }}

{{ end }}