Hacker News new | ask | show | jobs
by taubek 1342 days ago
When it comes to GitHub repo, what does the URL of the image look like? Is some kind of hash added to the filename? At the moment I use media files from my WordPress blog to store images.
2 comments

I just add them to an img folder in my Github repository and it is then served as part of the Github page. Just using `src=img/picture.jpg` works fine.
I've used systems like Docusarus[1] (for building my project documentation). It is build from my github project. And I end up with URLs on my server like https://mysite.com/docs/assets/images/connect-to-app-02c6a40...

But I've never tried to link directly to source file, not builded version on my server.

[1] https://docusaurus.io/

Try using the URL you get from dragging an image into a comment box (you don't even need to submit the comment).

It's not a long-term solution but it works.