From aea20940179b2c1bd94cddc4f78ada933aa6d875 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Thu, 16 Jan 2025 22:03:00 +0100 Subject: [PATCH] Remove shortcode 'figure' --- CHANGELOG.md | 5 ++++- layouts/shortcodes/figure.html | 29 ----------------------------- 2 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 layouts/shortcodes/figure.html diff --git a/CHANGELOG.md b/CHANGELOG.md index aafb013da7..b65e4e8c7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,10 @@ Useful links: For the full list of changes, see the [0.x.y] release notes. -**Breaking changes**: +**Potential breaking change**: + +- Removes shortcode `figure`, hugo's built-in shortcode `figure` + can/will be used instead. **New**: diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html deleted file mode 100644 index 8d126f065d..0000000000 --- a/layouts/shortcodes/figure.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ $src := (.Page.Resources.GetMatch (printf "**%s*" (.Get "src"))) }} - - {{- if .Get "link" -}} - - {{- end }} - {{ with .Get - {{- if .Get "link" }}{{ end -}} - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} -
- {{ with (.Get "title") -}} -

{{ . }}

- {{- end -}} - {{- if or (.Get "caption") (.Get "attr") -}}

- {{- .Get "caption" | markdownify -}} - {{- with .Get "attrlink" }} - - {{- end -}} - {{- .Get "attr" | markdownify -}} - {{- if .Get "attrlink" }}{{ end }}

- {{- end }} -
- {{- end }} -