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

support submit amp&mip #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

support submit amp&mip #17

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 30, 2018

百度年底新增了提交mip和amp的方式,与原来提交连接的方式一样,只不过多了个type
用了比较简单的方式去做了个控制,可在_config.yml中配置如下:

## 百度主动提交
baidu_url_submit:
  count: 1 ## 比如 3,代表提交最新的三个链接
  host: xxx.com ## 在百度站长平台中注册的域名
  token: 6666666 ## 请注意这是您的秘钥, 请不要发布在公众仓库里 !
  path: baidu_urls.txt ## 文本文档的地址, 新链接会保存在此文本文档里
  mip: false
  amp: true

@huiwang
Copy link
Owner

huiwang commented Feb 3, 2018

@liyang8 谢谢PR,能解释一下他们的作用吗?

@tiexo
Copy link

tiexo commented Feb 6, 2018

有效,感谢
image

@ghost
Copy link
Author

ghost commented Feb 8, 2018

@huiwang 作用是支持Google AMP和Baidu的MIP提交链接。 这两个技术基本上相似,都是将页面按照规范重新生成(去除了很多东西),然后缓存在Google和Baidu提供的CDN,实现移动端页面秒开。

@huiwang
Copy link
Owner

huiwang commented Feb 9, 2018

@liyang8 多些解释 :) 你对博客做了特殊的修改了吗,你的博客支持哪个加速协议?

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

Successfully merging this pull request may close these issues.

None yet

3 participants