mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
🐛 fix: add default figure shortcode as partial
Hugo v0.146 removed access to embedded templates like "_internal/shortcodes/figure.html". This commit adds the template as figure-default.html. This fixes build errors reported and partially solved in issues #2052 and #2093 when using the figure shortcode with the "default=true" option.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
||||
{{ if .Get "default" }}
|
||||
{{ partial "shortcodes/figure.html" . }}
|
||||
{{ partial "hugo-embedded/shortcodes/figure-default.html" . }}
|
||||
{{ else }}
|
||||
{{- $url := urls.Parse (.Get "src") }}
|
||||
{{- $altText := .Get "alt" }}
|
||||
|
||||
Reference in New Issue
Block a user