Merge pull request #22175 from sftim/20200629_remove_capture_shortcodes

Remove capture shortcodes & warn on future use.
This commit is contained in:
Kubernetes Prow Robot
2020-07-04 05:30:48 -07:00
committed by GitHub
28 changed files with 148 additions and 142 deletions
+3 -2
View File
@@ -3,5 +3,6 @@
{{- if not $id -}}
{{- errorf "missing id in capture" -}}
{{- end -}}
{{- $capture_id := printf "__cid_%s" $id -}}
{{- .Page.Scratch.Set $capture_id .Inner -}}
{{- $capture_id := printf "capture %s" $id -}}
{{- .Page.Scratch.Set $capture_id .Inner -}}
{{ warnf "Invalid shortcode: %s, in %q" $capture_id (relLangURL .Page.Path) }}