Skip to content

Commit 197b054

Browse files
committed
Update to .each and remove use of .dup
1 parent eeff3bb commit 197b054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-github-metadata/edit-link-tag.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def parts
7474
def page_path
7575
return page["path"] unless page["paginated"]
7676

77-
site.pages.dup.select do |page|
77+
site.pages.each do |page|
7878
return page["path"] if page.pager && page.pager.page == 1
7979
end
8080
end

0 commit comments

Comments
 (0)