Sha256: 89deb5e1d3036b4dcab812e4f46429e2d6dcdfec4e288d02bfb03abf25b4ee6e

Contents?: true

Size: 817 Bytes

Versions: 9

Compression:

Stored size: 817 Bytes

Contents

module Jekyll
  module Golink
    module Theme
      module ErrorPage
        def create_error_page(filename,permalink)

          # Create a markdown file, a page required for Jekyll case or see site url error.

          File.open(filename, 'w') do |file|
            file.puts "---"
            file.puts "layout: error"
            file.puts "title: Error 404"
            file.puts "goback: < go back!"
            file.puts "# Do not change the value of the permalink"
            file.puts "permalink: #{permalink}"
            file.puts "---"
            file.puts ""
            file.puts "Oops! Something went wrong! Page Not Found! The reasons may be: The page never"
            file.puts "existed, I changed this page or it was deleted. Sorry baby."
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
golink-1.0.9 lib/golink/template/error_page.rb
golink-1.0.8 lib/golink/template/error_page.rb
golink-1.0.7 lib/golink/template/error_page.rb
golink-1.0.6 lib/golink/template/error_page.rb
golink-1.0.4 lib/golink/template/error_page.rb
golink-1.0.3 lib/golink/template/error_page.rb
golink-1.0.2 lib/golink/template/error_page.rb
golink-1.0.1 lib/golink/template/error_page.rb
golink-1.0.0 lib/golink/template/error_page.rb