0

I created my first Jekyll blog using the "Minimal Mistakes" theme. It works like a charm when I run it locally using jekyll serve. However, when deploying it on Github, I cannot display some of the images.

The images that are called in my post's front matter or directly in the _config.yaml show up just fine. On the other hand the image called in my post using markdown does not show up:

I have tried:

![caption]("/assets/images/image.jpg"){:class="img-responsive"} (the default)

and

![caption]("/assets/images/image.jpg")

After reading this post, I double checked the spelling, but it seems alright.

That post suggest to set a baseurl in _config.yml. What url should I specify? Is that the url of the Github repo where all my files are stored?

Sheldon
  • 4,084
  • 3
  • 20
  • 41

1 Answers1

0

After a bit of troubleshooting, it appears that the url should contain the root directory (in my case, a folder named blog).

So ![caption]("/blog/assets/images/image.jpg") does the trick!

Sheldon
  • 4,084
  • 3
  • 20
  • 41