jekyll-authors 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4209e6a6fc998af91e2cda7f1d7254eb2497dca4
4
- data.tar.gz: fa428c2ab5af1fb1d70c22cf8412f1eab6837128
3
+ metadata.gz: 9c73f67b55705106d4c373c494600845a91751b8
4
+ data.tar.gz: f6af24c9c746df01f0e615659356f747a20cd490
5
5
  SHA512:
6
- metadata.gz: 04b8aa8cb3c16e70edcdea7106eeefffa939e6febcba925ab0968f968fb5638537dd5cf9dbe44bea8279fd416f08a2761db9d14c5c46d067634777b40ccc8a45
7
- data.tar.gz: 69e17f77aef96b4a847c155ec690d5abd8df00a12deced26cf2ad4c49f1cbacc8d60bfc9e89a918c45231675aafbaf09ec10245c40a73e919e736b57e5b7fad5
6
+ metadata.gz: fa019f58b66891bf0f3abea129e63591721c8441fd579aff7353afbeba5bdd5370a46f0fa728eb5aef9a99fedea8d06c957a708df4909b27d7f22c5b401dd6c6
7
+ data.tar.gz: 81f4b6ad80806724e09b20025e18d7018744900c21d6463eeb7a0d47ad0044d0acc87e01dbf6cc99965871df5039a3ab147074670feecf2bea99b3fcd5f38a4a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-authors (0.0.1)
4
+ jekyll-authors (0.0.2)
5
5
  jekyll (>= 0.10.0)
6
6
 
7
7
  GEM
@@ -12,7 +12,6 @@ module Jekyll
12
12
  self.process(@name)
13
13
  self.read_yaml(File.join(base, '_layouts'), 'author_index.html')
14
14
  self.data['author'] = author
15
-
16
15
  author_title_prefix = site.config['author_title_prefix'] || 'Author: '
17
16
  self.data['title'] = "#{author_title_prefix}#{author}"
18
17
  end
@@ -53,26 +52,26 @@ module Jekyll
53
52
  def generate(site)
54
53
  if site.layouts.key? 'author_index'
55
54
  dir = site.config['author_dir'] || 'authors'
56
- site.authors.keys.each do |author|
55
+ site.config['authors'].keys.each do |author|
57
56
  write_author_index(site, File.join(dir, author.gsub(/\s/, "-").gsub(/[^\w-]/, '').downcase), author)
58
57
  end
59
58
  end
60
59
 
61
60
  if site.layouts.key? 'author_feed'
62
61
  dir = site.config['author_dir'] || 'authors'
63
- site.authors.keys.each do |author|
62
+ site.config['authors'].keys.each do |author|
64
63
  write_author_feed(site, File.join(dir, author.gsub(/\s/, "-").gsub(/[^\w-]/, '').downcase), author)
65
64
  end
66
65
  end
67
66
 
68
67
  if site.layouts.key? 'author_list'
69
68
  dir = site.config['author_dir'] || 'authors'
70
- write_author_list(site, dir, site.authors.keys.sort)
69
+ write_author_list(site, dir, site.config['authors'].keys.sort)
71
70
  end
72
71
  end
73
72
 
74
73
  def write_author_index(site, dir, author)
75
- index = CategoryIndex.new(site, site.source, dir, author)
74
+ index = AuthorIndex.new(site, site.source, dir, author)
76
75
  index.render(site.layouts, site.site_payload)
77
76
  index.write(site.dest)
78
77
  site.static_files << index
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Authors
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-authors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauro Otonelli