{{ $_hugo_config := `{ "version": 1 }`}} {{- $id := .Get 0 -}} {{- if not $id -}} {{- errorf "missing id in capture" -}} {{- end -}} {{- $capture_id := printf "capture %s" $id -}} {{- .Page.Scratch.Set $capture_id .Inner -}} {{ warnf "Invalid shortcode: %s, in %q" $capture_id (relLangURL .Page.Path) }}