Giter VIP home page Giter VIP logo

typechosticky's Introduction

typechoSticky

Typecho 文章置顶插件。支持分类置顶。

原作者: http://kan.willin.org/typecho/ (网站不可访问) ,已经停止更新了。在Github也没有找到源码,于是重新修改上传了一份。

重新修改增加了 分类文章置顶、单独分类文章置顶的功能。 优化了一下原有默认[置顶]的CSS风格

使用方法

下载解压至 ** usr/plugins ** 目录,文件夹重命名为:Sticky

代码很简单,修改的话,也有相应的注释。

最终样式

置顶风格

如须显示,加一段代码在 article 后面

类似
<article class="post" itemscope itemtype="http://schema.org/BlogPosting"><?php $this->sticky() ?>

记得在首页(index.php)和(archive.php)页都加上

typechosticky's People

Watchers

 avatar  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.