longkey1 / jekyll-category-list-plugin

jekyll plugin for displapy category list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Category list plugin for Jekyll

This plugin was referred to Jekyll - Category List Plug-in.

How to install

Get dependency package

cd /path/to/jekyll

vi Gemfile

+ gem 'stringex'

bundle install --path vendor/bundle

or by gem command

gem install stringex

Get category_list_tag.rb

cd /path/to/plugins
wget https://raw.github.com/longkey1/jekyll-category-list-plugin/master/category_list_tag.rb

or by git-submodule

cd /path/to/jekyll
git submodule add git://github.com/longkey1/jekyll-category-list-plugin.git _plugins/category-list

Create category list template file

example: category_list.html

vi /path/to/jekyll/_includes/category_list.html

+ <section>
+   <h1>Categories</h1>
+   <ul id="categories">
+     {% category_list %}
+   </ul>
+ </section>

Build

cd /path/to/jekyll
jekyll build

About

jekyll plugin for displapy category list


Languages

Language:Ruby 100.0%