Merge pull request #2210 from espressif/fix/add_default_figure_shortcode_as_partial

🐛 fix: add default figure shortcode as partial
This commit is contained in:
Nuno Coração
2025-06-17 23:12:54 +01:00
committed by GitHub
2 changed files with 44 additions and 1 deletions
+1 -1
View File
@@ -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" }}