Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (28 loc) · 982 Bytes

README.md

File metadata and controls

49 lines (28 loc) · 982 Bytes

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