githubhexo

The github pages blog can upload but cannot display the content


I have a github.io blog which can display very well before. But recently when I added a new articles and pushed it to github(by "hexo generate" and "hexo deploy"), I found that there isn't any contet words on my blog. In github blog repository ((https://github.com/zwdnet/zwdnet.github.io) I can see the pages pushed successfully. And when I check the blog's source code in my brower, I can see the newest article. My blog url is: https://zwdnet.github.io/ It is a Chinese blog. I can visit other github.io blogs, so maybe this is not the network problem. How can I solve this problem? Reseting the github pages? Thanks for any helping!


Solution

  • After opening your website, according to the console errors. Your blog is missing the JQuery $ library.

    enter image description here

    Check the header part of your code, add in a JQuery link will fix this problem.

    Add this in the header tag.

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>