Git Product home page Git Product logo

yomi-typecho-v2's Introduction

#YoMi-Typecho-V2

Yomi-Typecho-V2是Yomi-Typecho-V1的重构版,使其更简洁,体验更好;

主题专页 —— 更完整的配置文档以及反馈主题网站; 演示

安装

下载主题后解压缩将里面的文件夹扔到你的Typecho安装目录里的 usr/themes/ 里,然后在网站后台启用;

配置

比如站点logo和github、微博这些社交图标的配置

站点LOGO和社交图标
网站后台>控制台>外观>设置外观

接下来

多说评论、多说分享、百度统计以及你自己额外的脚本

如果你自己需要加一些JavaScript,那么你需要在footer.php的下面代码区放入回调函数,如下图

如果需要多说的话你需要把footer.php最低部的

<script data-no-instant>
InstantClick.on('change', function() {
otherFunction();
});
InstantClick.init();
</script>

改为下面这样

<script data-no-instant>
InstantClick.on('change', function() {
otherFunction();
if ($('.ds-thread').length > 0) {
// 多说评论
if (typeof DUOSHUO !== 'undefined') DUOSHUO.EmbedThread('.ds-thread');
else $.getScript("http://dl.weic96.cn/duoshuo_embed.js"); }
// 多说分享
DUOSHUO.initSelector('.ds-share',{type:'ShareWidget'});
// 百度统计
if (typeof _hmt !== 'undefined')
_hmt.push(['_trackPageview', location.pathname + location.search]);
});
InstantClick.init();
</script>

License

MIT

附加

本主题评论样式借用了Lpisme主题的评论;在此感谢;

yomi-typecho-v2's People

Watchers

James Cloos avatar Mark avatar

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.