website/layouts/shortcodes/capture.html

8 lines
303 B
HTML

{{ $_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) }}