Skip to content

Commit

Permalink
Regression Fix: Do not paginate hidden posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hueckstaedt authored and sverrirs committed Jul 21, 2017
1 parent 5d76977 commit ecc96ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/jekyll-paginate-v2/generator/paginationModel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ def get_docs_in_collections(raw_collection_names)
docs += @collection_by_name_lambda.call(coll_name.downcase.strip)
end

# Hidden documents should not not be processed anywhere.
docs = docs.reject { |doc| doc['hidden'] }

return docs
end

Expand Down

0 comments on commit ecc96ad

Please sign in to comment.