Skip to content

Commit

Permalink
Use public folder instead of calling to Jekyll Auth again
Browse files Browse the repository at this point in the history
  • Loading branch information
shreve committed Jan 2, 2018
1 parent 1ddd22f commit d89e518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll_auth/jekyll_site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class JekyllSite < Sinatra::Base

not_found do
status 404
four_oh_four = File.expand_path(JekyllAuth.destination + "/404.html", Dir.pwd)
four_oh_four = File.expand_path(settings.public_folder + "/404.html", Dir.pwd)
File.read(four_oh_four) if File.exist?(four_oh_four)
end
end
Expand Down

0 comments on commit d89e518

Please sign in to comment.