Merge pull request #2055 from ragibson/main

Rewrite templates/partials for Hugo v0.146.0
This commit is contained in:
Nuno Coração
2025-05-01 16:43:38 +01:00
committed by GitHub
11 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
{{ if .Get "default" }}
{{ template "_internal/shortcodes/figure.html" . }}
{{ partial "shortcodes/figure.html" . }}
{{ else }}
{{- $url := urls.Parse (.Get "src") }}
{{- $altText := .Get "alt" }}