Permalink
Browse files

bugfix : duplicate related tags

  • Loading branch information...
danc authored and rfelix committed Jun 24, 2010
1 parent 5888f6b commit 2a70dd86b3e700740ebd246e5412db3a10d758d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tag_gen/tag_gen.rb
View
@@ -25,7 +25,7 @@ def initialize(site, base, dir, tag)
related = []
site.tags[tag].each do |post|
post.tags.each do |rel|
- related.push(rel) unless rel == tag && related.include?(rel)
+ related.push(rel) unless rel == tag || related.include?(rel)
end
end
self.data['related'] = related unless related.empty?

0 comments on commit 2a70dd8

Please sign in to comment.