简体   繁体   English

通过github页面托管时出现的问题

[英]Issue while hosting through github pages

I uploaded a static website to Github, and hosted it through Github pages. 我将静态网站上传到Github,并通过Github页面进行托管。 And it was successfully uploaded to internet. 它已成功上传到互联网。 But the problem is the images were not loaded. 但问题是未加载图像。 And then I identified that, I didnt upload the image files associated with that website to Github. 然后我发现,我没有将与该网站关联的图像文件上传到Github。 And now, even if I add those image files to Github, still it is not showing the images online. 现在,即使我将这些图像文件添加到Github,它仍然不会在线显示图像。

Github Repo link : https://github.com/subinedge/CyberPunk Github Repo链接: https : //github.com/subinedge/Cyber​​Punk
Live site link : https://subinedge.github.io/CyberPunk/ 实时网站链接: https : //subinedge.github.io/Cyber​​Punk/
You can see the issue at "Meet the authors section" in the website 您可以在网站上的“与作者见面”部分中看到问题

Those images do not exist in the gh-pages branch your site is probably being deployed from. 这些图像在您可能正从其部署站点的gh-pages分支中不存在。

You can change the branch your site is being deployed from in your repository's settings view – scroll down to find the GitHub Pages section – or you can update the gh-pages branch to match master. 您可以从存储库的设置视图中更改要部署站点的分支–向下滚动以找到GitHub Pages部分–或可以更新gh-pages分支以匹配master。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM