master
muflax 2012-06-25 07:37:32 +02:00
parent 3f2a1bab2d
commit 70b3cc534a
2 changed files with 9 additions and 7 deletions

View File

@ -78,13 +78,6 @@ class Category
def title
@item[:title]
end
def link count=false
desc = title
desc += " (#{members.size})" if count
"<a href='#{@item.identifier}'>#{desc}</a>"
end
end
class Nanoc::Site

View File

@ -38,3 +38,12 @@ class Nanoc::Site
moved
end
end
class Category
def link count=false
desc = title
desc += " (#{members.size})" if count
"<a href='#{@item.identifier}'>#{desc}</a>"
end
end