Merge pull request #28518 from sftim/20210620_remove_capture_shortcode

Remove capture shortcode
This commit is contained in:
Kubernetes Prow Robot
2021-06-23 18:57:40 -07:00
committed by GitHub
-8
View File
@@ -1,8 +0,0 @@
{{ $_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) }}