Skip to content

Commit

Permalink
Rewrite to single line per ashmaroli
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrado authored and sverrirs committed Dec 2, 2017
1 parent 51fdc61 commit ebdd42f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/jekyll-paginate-v2/generator/paginationModel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ def paginate(template, config, site_title, all_posts, all_tags, all_categories,
indexPageWithExt = indexPageName + indexPageExt

# In case there are no (visible) posts, generate the index file anyway
if total_pages == 0
total_pages = 1
end
total_pages = 1 if total_pages.zero?

# Now for each pagination page create it and configure the ranges for the collection
# This .pager member is a built in thing in Jekyll and defines the paginator implementation
Expand Down

0 comments on commit ebdd42f

Please sign in to comment.