You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
I am writing a post in markdown and include an image which is located in images/pic1.png:
![This is an image][img-ref]
[img-ref]: /images/pic1.png
This works fine when running locally but when published to GitHubs project pages the image url does not work as expected.
When I change the ref to [img-ref]: {{ BASE_PATH }}/images/pic1.png it also works locally but not on GitHub.
When I change the ref to [img-ref]: {{ site.JB.BASE_PATH }}/images/pic1.png it works both locally and on Github but always (also when developing locally) inserts the link to the image hosted on GitHub.
So what is the correct usage of BASE_PATH in posts (and also pages)?
Thanks!
The text was updated successfully, but these errors were encountered:
I am writing a post in markdown and include an image which is located in
images/pic1.png
:This works fine when running locally but when published to GitHubs project pages the image url does not work as expected.
When I change the ref to
[img-ref]: {{ BASE_PATH }}/images/pic1.png
it also works locally but not on GitHub.When I change the ref to
[img-ref]: {{ site.JB.BASE_PATH }}/images/pic1.png
it works both locally and on Github but always (also when developing locally) inserts the link to the image hosted on GitHub.So what is the correct usage of
BASE_PATH
in posts (and also pages)?Thanks!
The text was updated successfully, but these errors were encountered: