You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我对 SEO 不熟, 我不确定这样的逻辑会不会影响搜索引擎对内容的收录. (同时会不会影响对内容中的链接的爬取)
我比较了一下各个框架生成的静态产物:
Dumi
以 dumi 官网首页为例:
<html><head></head><body><noscript><b>Enable JavaScript to run this app.</b></noscript><divid="root"><!--$?--><templateid="B:0"></template><div></div><!--/$--></div><scriptsrc="/umi.79140827.js" async=""></script><divhiddenid="S:0"><!--$?--><templateid="B:1"></template><div></div><!--/$--></div><script>$RC=function(b,c,e){};$RC("B:0","S:0");</script><divhiddenid="S:1"><!-- 内容 --></div><script>$RC("B:1","S:1");</script><divhiddenid="S:2"><!-- 内容 --></div><script>$RC("B:2","S:2");</script></body></html>
Background
有一个疑问需要请教一下各位. 我用 dumi 构建了一个组件库, 并且生成了静态站点.
站点使用 umi 的 exportStatic 预渲染出静态内容. 但是这些内容默认都是隐藏的, 需要 js 来控制其显示.
我对 SEO 不熟, 我不确定这样的逻辑会不会影响搜索引擎对内容的收录. (同时会不会影响对内容中的链接的爬取)
我比较了一下各个框架生成的静态产物:
Dumi
以 dumi 官网首页为例:
Docusaurus
Gatsby
Proposal
如果对 SEO 有影响, 可否修改静态产出.
The text was updated successfully, but these errors were encountered: