Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sistemato plugin per generare tag cloud

  • Loading branch information...
commit 1c6077d0f6b796663de139648e311251f66cdd76 1 parent 2f68c06
@nicodds authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 _plugins/tags.rb
View
9 _plugins/tags.rb
@@ -51,7 +51,8 @@ def initialize(site, tag, posts)
@dir = tag
@tag = tag
self.ext = '.html'
- self.basename = 'index'
+ @name = 'index' + self.ext
+ self.basename = @name
self.content = <<-EOS
@@ -91,7 +92,7 @@ def render(layouts, site_payload)
end
def url
- File.join("/tag", @dir, "index.html")
+ File.join("/tag", @dir, @name)
end
def to_liquid
@@ -111,6 +112,10 @@ def write(dest_prefix, dest_suffix = nil)
end
end
+ def pager
+ true
+ end
+
def html?
true
end
Please sign in to comment.
Something went wrong with that request. Please try again.