2019-04-09 01:19:05 +00:00
|
|
|
{{ $_hugo_config := `{ "version": 1 }`}}
|
2018-05-05 16:00:51 +00:00
|
|
|
{{- $id := .Get 0 -}}
|
|
|
|
{{- if not $id -}}
|
|
|
|
{{- errorf "missing id in capture" -}}
|
|
|
|
{{- end -}}
|
2020-06-29 17:54:30 +00:00
|
|
|
{{- $capture_id := printf "capture %s" $id -}}
|
|
|
|
{{- .Page.Scratch.Set $capture_id .Inner -}}
|
|
|
|
{{ warnf "Invalid shortcode: %s, in %q" $capture_id (relLangURL .Page.Path) }}
|