Hi.
I made a different render-image for the homepage (with type:home) and it’s seen as such, but I have this error message:
“/home/drm/WEBSITE/themes/hugo-book/layouts/home/_markup/render-image.html:24:13”: execute of template failed: template: home/_markup/render-image.html:24:13: executing “home/_markup/render-image.html” at <$img.Width>: error calling Width: this method is only available for image resources
no it has to be a syntax mistake, because everything worked before. Even without default.
Is this the good syntax for what it’s obviously supposed to mean ?
Error: Error building site: “/home/drm/WEBSITE/content/docs/Biology/virus-exosome-en.md:1:1”: “/home/drm/WEBSITE/themes/hugo-book/layouts/_default/_markup/render-image.html:25:32”: execute of template failed: template: _default/_markup/render-image.html:25:32: executing “_default/_markup/render-image.html” at <.Site.imaging.quality>: can’t evaluate field Site in type goldmark.imageLinkContext
You must mean site.imaging.quality I suppose. still complaining.
execute of template failed: template: _default/_markup/render-image.html:25:26: executing “_default/_markup/render-image.html” at : can’t evaluate field Image in type interface {}
Built in 537 ms
found the solution.
i replaced type: home but layout: home. Pfff, if that is not confusing I don’t know what it is. And it ain’t gonna change…
I would still suggest though, explaining on the site the difference in behavior. this sðit is confusing as hell. Using type did apply to the homepage, but to apparently all the other pages too since the error message concerned a completely unrelated page.