vendor/bundle/ruby/2.3.0/gems/jekyll-redirect-from-0.11.0/lib/jekyll-redirect-from/redirect_page.rb
# 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.
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.
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 generate_redirect_content(item_url)
      self.output = self.content = <<-EOF
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting…</title>
<link rel="canonical" href="#{item_url}">
<meta http-equiv="refresh" content="0; url=#{item_url}">
<h1>Redirecting…</h1>
<a href="#{item_url}">Click here if you are not redirected.</a>
<script>location="#{item_url}"</script>
</html>
EOF
    end
def generate_redirect_content ( item_url ) self . output = self . content = <<-EOF 
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting…</title>
<link rel="canonical" href=" #{ item_url } ">
<meta http-equiv="refresh" content="0; url= #{ item_url } ">
<h1>Redirecting…</h1>
<a href=" #{ item_url } ">Click here if you are not redirected.</a>
<script>location=" #{ item_url } "</script>
</html>
 EOF end
Initialize a new RedirectPage.
Initialize a new RedirectPage .
item_url
<not_specific>