Giter Club home page Giter Club logo

moecdn-typecho's Introduction

MoeCDN-Typecho

MoeCDN Plugin for Typecho 0.9 or later version ( MoeNet.Inc )

Deprecated

This plugin is deprecated now, becase moefont has been broken for a long time. You can still download or refer to this plugin, but the functions of this plugin will not work properly.

插件和MoeCDN的建设暂时处于开始阶段,因此我们很抱歉无法提供很多的功能。 目前由 MoeCDN-Wordpress 移植到 MoeCDN-Typecho 的功能有:

免费 Gravatar 头像加速

因为众所周知的原因,在天朝是无法显示 Gravatar 头像的哦啊,那怎么办呢?也是有办法的

将 gravatar.com 的原有域名,直接指向 gravatar.moefont.com 即可 如果需要 HTTPS 支持,请使用 gravatar-ssl.moefont.com ,* 非 HTTPS 站点请勿使用 *。

然而,如果你在 Typecho 上使用这个插件,只需勾选一个 radio 就可以啦~

免费 GoogleApis 加速

使用谷歌公共库可以加快网页加载速度,但是,众所周知的原因,在**您不能享受这一点

但是现在,您只需替换googleapis.com为cdn.moefont.com即可享受这一切~

例如:

fonts.googleapis.com -> cdn.moefont.com/fonts

ajax.googleapis.com -> cdn.moefont.com/ajax

这个复杂的工作也让 MoeCDN-Typecho 帮你完成吧~

现在就去下载吧~

点击上面的 Download-Zip,然后解压并修改解压出来的文件夹名字为“MoeCDN”,上传到 Your Typecho/usr/plugins/ 目录下,到后台启用插件即可。

关于启用插件提示 500 的说明

  1. 发生此原因的时候,百分之九十九的情况下删除插件文件夹 ./usr/plugins/MoeCDN-Typecho-master 文件名中的 "-Typecho-master",仅保留“MoeCDN”或其他名字即可。
  2. 如果无法解决问题,请在 config.inc.php 中 加入 define("__TYPECHO_DEBUG__",true); ,然后复制错误信息到 GitHub issues 页面提问。

1.0 ----> 1.1 升级须知

1.0 -> 1.1 主要更新内容是:自动判断协议来请求 MoeCDN 的 Gravatar 源,无需定义 HTTP/HTTPS;针对 #3 提出修改方案。 如果您要从 1.0 版本升级到 1.1 版本,请下载最新的代码覆盖即可。由于选项和挂载点的改动,您需要重新激活您的 MoeCDN 插件。

其他

MoeCDN for Typecho 插件的诞生离不开 @MoeNetwork 对 MoeCDN 项目的建设以及 @kokororin 对插件代码的修改优化

moecdn-typecho's People

Contributors

kirainmoe avatar kokororin avatar

Stargazers

 avatar HappyKanda avatar  avatar  avatar King avatar zrj766 avatar  avatar  avatar Joseph Chen avatar

Watchers

James Cloos avatar Balthild avatar Kenvix ⭐ avatar Andy1999 avatar  avatar  avatar  avatar

moecdn-typecho's Issues

关于gravatar加速的问题

我直接在我模板的index.php里面调用了$this->author->gravatar();
也就是相当于调用了Widget_Abstract_Users这个类里面的gravatar方法
导致最终的输出结果还是原来的gravatar.com
这个方法似乎没有办法进行hook改写?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.