首页 > 解决方案 > 具有 XHTML 1.0 Strict 的 Github 页面,我可以在没有 Cloudflare 邮件保护的情况下使用吗?

问题描述

我已将我的 XHTML 1.0 Strict 兼容网页部署到 Github Pages 中。但是,由于 Cloudflare 邮件保护而发生错误。它是自动运行的。

[Error] Line 204, Column 160: there is no attribute "data-cfemail"
...on" class="__cf_email__" data-cfemail="4f3c3a3f3f203d3b0f2a373b3c61243d">[emai...

[Error] Line 206, Column 176: there is no attribute "data-cfemail"
...pan class="__cf_email__" data-cfemail="97e4e2e7e7f8e5e3d7f2efe3e4b9fce5">[emai...

[Error] Line 236, Column 30: there is no attribute "data-cfasync"
...script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-...

[Error] Line 236, Column 107: required attribute "type" not specified
...cloudflare-static/email-decode.min.js"></script><script src="assets/js/jquery-...

我可以在我的 Github 页面中禁用 Cloudflare 邮件保护吗?

标签: githubxhtmlgithub-pagescloudflarexhtml-1.0-strict

解决方案


您可以通过创建一个单独的.xhtml文件作为index.xhtml. 但是,index.xhtml不保证与 相同的行为index.html


推荐阅读