Typecho替换默认Gravatar头像地址
· 技术积累 · Typecho gravatar

Gravatar是Globally Recognized Avatar的缩写,是gravatar推出的一项服务,意为“全球通用头像”。如果在Gravatar的服务器上放置了你自己的头像,那么在任何支持Gravatar的blog或者留言本上留言时,只要提供你与这个头像关联的email地址,就能够显示出你的Gravatar头像来。

评论头像加载拖慢网页速度,由于默认的头像地址比较慢,可以替换为较快的cdn加速地址

#修改/var/Typecho/Common.php文件,注释掉937和938行,添加一行


 937             //$url = $isSecure ? 'https://secure.gravatar.com' : 'http://www.gravatar.com';
 938             $url = $isSecure ? 'https://gravatar.loli.net' : 'https://sdn.geekzu.org/avatar/';
 939             $url .= '/avatar/';

Typecho替换默认Gravatar头像地址


其他加速地址[2023-2-06]更新:

# 2023-11-23 测试可用
https://dn-qiniu-avatar.qbox.me/avatar/
https://cravatar.cn/avatar/

https://gravatar.loli.net/avatar/ 跳转 https://i2.wp.com/gravatar.loli.net/avatar/?ssl=1
https://sdn.geekzu.org/avatar/ 跳转 https://1.gravatar.com/avatar/

# 不可用
https://avatar.zrahh.com/avatar/
https://cdn.v2ex.com/gravatar/

本文最后更新时间 2024-03-30
文章链接地址:
https://me.jinchuang.org/archives/575.html
本站文章除注明[转载|引用],均为本站原创内容,转载前请注明出处
typecho博客根据时间自动切换主题配色
Typecho后台样式修改预览
本博客主题 - Sgreen主题修改版
微信小程序

centos7 安装使用virtualenvwrapper

OpenVPN win10客户端连接几个警告信息解决

留言列表

  1. 折叠时空
    Windows 10 Microsoft Edge
    中国天津市联通

    https://sdn.geekzu.org/avatar/ 这个亲测可用,感谢博主

我要留言