Skip to content

Commit

Permalink
simplify tag pages
Browse files Browse the repository at this point in the history
  • Loading branch information
geozak committed Nov 6, 2016
1 parent ef1976e commit 4b64b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _plugins/_tag_gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def initialize(site, base, dir, tag)
@site = site
@base = base
@dir = dir
@name = 'index.html'
@name = tag + ".html"
self.process(@name)
self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
self.data['tag'] = tag
Expand All @@ -19,7 +19,7 @@ def generate(site)
if site.layouts.key? 'tag_index'
dir = site.config['tag_dir'] || 'tag'
site.tags.keys.each do |tag|
write_tag_index(site, File.join(dir, tag), tag)
write_tag_index(site, dir, tag)
end
end
end
Expand Down

0 comments on commit 4b64b56

Please sign in to comment.