Remove render-image override

We can just use the resource shortcode in content files
This commit is contained in:
2025-07-27 00:44:45 -05:00
parent e0d2c536e4
commit 2fa53d1f2c
2 changed files with 0 additions and 14 deletions

View File

@@ -4,8 +4,6 @@ markup:
lineNos: true
goldmark:
parser:
# don't put <p> around ![]() image in markdown (used to embed any resource now)
wrapStandAloneImageWithinParagraph: false
attribute:
block: true
# this is enabled by default already

View File

@@ -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 }}