From 2fa53d1f2c96e22e844da5871f5a26454147d50c Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 27 Jul 2025 00:44:45 -0500 Subject: [PATCH] Remove render-image override We can just use the resource shortcode in content files --- hugo.yaml | 2 -- layouts/_markup/render-image.html | 12 ------------ 2 files changed, 14 deletions(-) delete mode 100644 layouts/_markup/render-image.html diff --git a/hugo.yaml b/hugo.yaml index 3d8a3a2..54ddc67 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -4,8 +4,6 @@ markup: lineNos: true goldmark: parser: - # don't put

around ![]() image in markdown (used to embed any resource now) - wrapStandAloneImageWithinParagraph: false attribute: block: true # this is enabled by default already diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html deleted file mode 100644 index 6f83f10..0000000 --- a/layouts/_markup/render-image.html +++ /dev/null @@ -1,12 +0,0 @@ -{{/* TODO: should we use .PageInner */}} -{{ partial "embed-resource.html" (.Page.Resources.Get .Destination) }} -{{ with .Title }} - {{ errorf "%q" . }} -{{ end }} -{{ with .Attributes }} - {{/* FIXME: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_markup/render-image.html */}} - {{ errorf "%q" . }} -{{ end }} -{{ with .Text }} - {{ errorf "%q" . }} -{{ end }}