refactor
parent
3f2a1bab2d
commit
70b3cc534a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue