URL for image in static directory

Hi

I need help again. Things that looks simple is SOOOO hard.

I read some posts and looks like all is good but it is not working.

blog post Do not use Pandas to load data use Data Factory :: Pedro Junqueira — Data Engineer

both link are bloken

files are in /static/img/sql.png

and code in .md is

{{< figure src="/static/img/sql.png" title="SSMS" >}}

what am I doing wrong?

Cheers

Pedro

You are serving your site from a subdirectory named blog:

baseURL = "https://pedrojunqueira.github.io/blog"

So the path to the image will be:

/blog/img/sql.png

Files within the static directory are copied to the root of the public directory when you build your site, so you never include static in the path. See:
https://gohugo.io/content-management/static-files/

thanks it worked. :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.