Update pagination classes moving into a module
This commit is contained in:
parent
663a1321d2
commit
10d980b6e1
|
@ -1,5 +1,5 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
|
module Generators
|
||||||
class Pagination < Generator
|
class Pagination < Generator
|
||||||
# This generator is safe from arbitrary code execution.
|
# This generator is safe from arbitrary code execution.
|
||||||
safe true
|
safe true
|
||||||
|
@ -51,6 +51,7 @@ module Jekyll
|
||||||
format.sub(':num', num_page.to_s)
|
format.sub(':num', num_page.to_s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Pager
|
class Pager
|
||||||
attr_reader :page, :per_page, :posts, :total_posts, :total_pages, :previous_page, :next_page
|
attr_reader :page, :per_page, :posts, :total_posts, :total_pages, :previous_page, :next_page
|
||||||
|
@ -115,5 +116,4 @@ module Jekyll
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue