From 037456870ff9a87bc33054f668916fbb08015084 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Sun, 20 Jun 2021 20:53:45 +0100 Subject: [PATCH] Remove capture shortcode The capture shortcode is no longer used: the switch was made on 2020-06-15, in commit 0625ced4668b819eb9789570d8b9f2c5f9fef4b9. Remove it. After this change, it won't be possible to use this legacy shortcode (builds would fail). --- layouts/shortcodes/capture.html | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 layouts/shortcodes/capture.html diff --git a/layouts/shortcodes/capture.html b/layouts/shortcodes/capture.html deleted file mode 100644 index cc762273c3..0000000000 --- a/layouts/shortcodes/capture.html +++ /dev/null @@ -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) }} \ No newline at end of file