Sha256: 4267e73e8c99990d63da52bc31f2677b80430638728af832b200afeb622cfe90

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 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.exists?(four_oh_four)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-auth-2.0.0 lib/jekyll_auth/jekyll_site.rb
jekyll-auth-1.0.3 lib/jekyll_auth/jekyll_site.rb
jekyll-auth-1.0.2 lib/jekyll_auth/jekyll_site.rb
jekyll-auth-1.0.1 lib/jekyll_auth/jekyll_site.rb
jekyll-auth-1.0.0 lib/jekyll_auth/jekyll_site.rb