Code Monkey home page Code Monkey logo

octopress-category-list's Introduction

Tag Cloud for Octopress

Description:

Easy output tag cloud and category list.

Files:

.
├─ plugins/
│  └── category_list.rb
└─ source/
   └─ _includes/
      └─ custom/
         └─ asides/
            ├─ category_list.html
            └─ category_cloud.html

Syntax:

{% category_cloud [counter:true] %}
{% category_list [counter:true] %}

Example:

In some template files, you can add the following markups.

source/_includes/custom/asides/category_cloud.html

<section>
  <h1>Tag Cloud</h1>
    <span id="tag-cloud">{% category_cloud %}</span>
</section>

source/_includes/custom/asides/category_list.html

<section>
  <h1>Categories</h1>
    <ul id="category-list">{% category_list counter:true %}</ul>
</section>

alswl 的改进

支持 utf-8,使用 category_cloud 替换 tag_cloud , 以避免和 真正的标签云 冲突。

Notes:

Be sure to insert above template files into default_asides array in _config.yml. And also you can define styles for 'tag-cloud' or 'category-list' in a .scss file. (ex: sass/custom/_styles.scss)

Licence:

Distributed under the MIT License.

octopress-category-list's People

Contributors

tokkonopapa avatar alswl avatar flaviusim avatar

Watchers

James Cloos 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.