Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

公益404页面跨域 #389

Closed
youngjuning opened this issue Aug 13, 2018 · 11 comments
Closed

公益404页面跨域 #389

youngjuning opened this issue Aug 13, 2018 · 11 comments

Comments

@youngjuning
Copy link

youngjuning commented Aug 13, 2018

image

@youngjuning
Copy link
Author

接入方式改变了::http://www.qq.com/404/

@Raincal
Copy link
Member

Raincal commented Aug 13, 2018

我注意到你的博客已经修复了这个问题,可以考虑提个PR

@youngjuning
Copy link
Author

@Raincal ,这个是文档中的,没找到文档出处

@Raincal
Copy link
Member

Raincal commented Aug 13, 2018

暂时没有文档,需要在 docs 目录下添加

@sli1989
Copy link
Collaborator

sli1989 commented Aug 16, 2018

@youngjuning Can u provide your solution to this?

@panqiincs
Copy link

I have the same problem. I followed the instruction of the help page: 腾讯公益404页面, create a 404.html in my source/ directory, here is the content of it:

<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8;"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="robots" content="all" />
  <meta name="robots" content="index,follow"/>
  <link rel="stylesheet" type="text/css" href="https://qzone.qq.com/gy/404/style/404style.css">
</head>
<body>
  <script type="text/plain" src="http://www.qq.com/404/search_children.js"
          charset="utf-8" homePageUrl="/"
          homePageName="回到我的主页">
  </script>
  <script src="https://qzone.qq.com/gy/404/data.js" charset="utf-8"></script>
  <script src="https://qzone.qq.com/gy/404/page.js" charset="utf-8"></script>
</body>
</html>

Is there a solution? many thanks.

@youngjuning
Copy link
Author

接入方式变了,按照我最上面说的了解就可以。或者查看我的博客,复制我的404就可以

@panqiincs
Copy link

@youngjuning 以解决,多谢。

@panqiincs
Copy link

@sli1989 The solution is as follows:

Create a file 404.html in source directory, the content is as follows:

<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8;"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="robots" content="all" />
  <meta name="robots" content="index,follow"/>
</head>
<body>
  <script type="text/javascript"
          src="//qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js"
          charset="utf-8" homePageUrl="/" homePageName="回到我的主页">
  </script>
</body>
</html>

And problem solved.

@aixiu
Copy link

aixiu commented Sep 16, 2018

谢谢提醒改动了。ths

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Aug 2, 2019

Docs of custom pages here: https://theme-next.org/docs/theme-settings/custom-pages

NexT
NexT User Docs – Theme Settings - Custom Pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants