Merge pull request #22175 from sftim/20200629_remove_capture_shortcodes
Remove capture shortcodes & warn on future use.
This commit is contained in:
@@ -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) }}
|
||||
Reference in New Issue
Block a user