WingLim / hugo-tania

A simple theme for bloggers.

Home Page:https://hugo-tania.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why the picture is clearly in the static folder, but it still cannot be located by the render_image.html file?

hearecho opened this issue · comments

err:

execute of template failed: template: _default/_markup/render-image.html:4:125: executing "_default/_markup/render-image.html" at <imageConfig (printf "static/%s" .Destination)>: error calling imageConfig: open F:\Road\static\1.png: The system cannot find the file specified.

Example usage:
There is a image.png in static root folder.
You should insert image with markdown like this:
Note: It's necessary to add /

![](/image.png)

And it looks like this error is under windows?
It work fine in macOS.

Thanks, I have solved the problem. The path was strictly case sensitive, so it caused the image not to load.

Ok, hope you can enjoy the theme.