Upload images to GitHub from the browser

前端 未结 7 871
执笔经年
执笔经年 2020-12-24 02:22

I am using GitHub Pages, Jekyll, and Prose to manage a Website. Everything works fine, besides I cannot find a way to upload images. The Prose image uploader is not working

相关标签:
7条回答
  • 2020-12-24 02:52

    If you keep your images in the Jeykll repo, they're uploaded and hosted. Just find them on GitHub in your repo, and pass the src of your img in your HTML the raw value.

    Example: Image in my repo: https://github.com/kevinSuttle/kevinsuttle.github.io/blob/master/images/19698565-media_httpfarm5static_jhkva.jpg

    Raw: https://raw.github.com/kevinSuttle/kevinsuttle.github.io/master/images/19698565-media_httpfarm5static_jhkva.jpg

    It took me awhile to wrap my head around it also.

    0 讨论(0)
提交回复
热议问题