Sha256: 7bcfdd13da8eba9b3ee14761b1eca7c6fce1a9c49888d7dea4b222428fce6ac9
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 Bytes
Contents
# frozen_string_literal: true class JekyllAuth class JekyllSite < Sinatra::Base register Sinatra::Index set :public_folder, File.expand_path(JekyllAuth.destination, Dir.pwd) use_static_index "index.html" not_found do status 404 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-auth-2.1.3 | lib/jekyll_auth/jekyll_site.rb |
jekyll-auth-2.1.2 | lib/jekyll_auth/jekyll_site.rb |
jekyll-auth-2.1.1 | lib/jekyll_auth/jekyll_site.rb |