module Jekyll class RedirectFrom < Generator class RedirectPage < Page # Initialize a new RedirectPage. # # site - The Site object. # base - The String path to the source. # dir - The String path between the source and the file. # name - The String filename of the file. def initialize(site, base, dir, name) @site = site @base = base @dir = dir @name = name self.process(name) end def generate_redirect_content(item_url) self.content = <<-EOF Redirecting...

Redirecting...

Click here if you are not redirected.

EOF end end end end