AngryPowman / hexo-theme-prontera

A light theme for Hexo: http://powman.org
MIT License
72 stars 20 forks source link

开启 disqus , 页面上加载不出来 #8

Open wohub opened 4 years ago

wohub commented 4 years ago

url 路径我配置了 url: https://wohub.github.io

下面是页面报错信息 Disqus 无法加载。如果您是管理员,请参阅故障排除指南。

下面是console 报错信息 image

我Google 了好多, 都说URL 配置了即可解决, 我配置了,但是还是有问题.

VincentTam commented 4 years ago

@wohub Hi, have you think of migrating from Disqus?

Disqus contains a 3rd-party script to be loaded during page rendering. The code block for loading it shows that the static comments are not rendered as static HTML code. This hinders search engines from grabbing the comments, which are part of the site's content.

To see more reasons for migrating from Disqus, you may view

  1. https://victorzhou.com/blog/replacing-disqus/
  2. https://old.reddit.com/r/programming/comments/b9022a/switching_off_of_disqus_reduced_my_page_weight_by/
  3. https://medium.com/remys-blog/ejecting-disqus-4120e9985823

For non programmers in the PRC, Disqus is difficult to access, as reported in Huxpro/huxpro.github.io#258 (comment).

You may avoid these problems by switching to Staticman, which makes use of GitHub/GitLab Pull/Merge Requests instead of issues. Under Staticman's model, static comments are YML/JSON files stored in the remote GitHub/GitLab repo (usually under data/comments, configurable through the path parameter in root-level staticman.yml), and through a static blog generator (Jekyll/Hugo/etc), the stored data are rendered as part of the content. This gives a total ownership of a static site's comments.

:information_source: There're many ways to Rome, say JAM Stack, Jekyll AWS comments, etc.

macshion commented 3 years ago

注册个disqus账号,在主题下的 _config.yml 配置disqus设置的站点名