Skip to content
Tag cloud plugin for Octopress http://tokkonopapa.github.com/
Ruby HTML
Find file
Pull request Compare This branch is 5 commits ahead, 6 commits behind tokkonopapa:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
plugins Fix URLs with special characters (accents, etc) in categories lists a…
source/_includes/custom/asides
README.md modify README

README.md

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.

Something went wrong with that request. Please try again.