matflores-jekyll 0.4.1 → 0.4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jekyll/category_index.rb +19 -0
- metadata +2 -1
@@ -0,0 +1,19 @@
|
|
1
|
+
module Jekyll
|
2
|
+
|
3
|
+
class CategoryIndex < Page
|
4
|
+
# Initialize a new CategoryIndex.
|
5
|
+
# +base+ is the String path to the <source>
|
6
|
+
# +dir+ is the String path between <source> and the file
|
7
|
+
#
|
8
|
+
# Returns <CategoryIndex>
|
9
|
+
def initialize(base, dir, category)
|
10
|
+
@base = base
|
11
|
+
@dir = dir
|
12
|
+
@name = 'index.html'
|
13
|
+
self.process(@name)
|
14
|
+
self.read_yaml(File.join(base, '_layouts'), 'category_index.html')
|
15
|
+
self.data['category'] = category
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matflores-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.1
|
4
|
+
version: 0.4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/jekyll/page.rb
|
102
102
|
- lib/jekyll/post.rb
|
103
103
|
- lib/jekyll/archive.rb
|
104
|
+
- lib/jekyll/category_index.rb
|
104
105
|
- lib/jekyll/site.rb
|
105
106
|
- lib/jekyll/tags
|
106
107
|
- lib/jekyll/tags/highlight.rb
|