Sha256: a5337a5fc9628a95a06e87eab40082f1d1b42bae2d5883f241fe3ef7a51b64dc
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
class JekyllAuth class JekyllSite < Sinatra::Base register Sinatra::Index set :public_folder, File.expand_path("_site", Dir.pwd) use_static_index "index.html" not_found do status 404 four_oh_four = File.expand_path("_site/404.html", Dir.pwd) File.read(four_oh_four) if File.exist?(four_oh_four) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-auth-2.1.0 | lib/jekyll_auth/jekyll_site.rb |