class Middleman::Sitemap::Extensions::RedirectResource

def ignored?

def ignored?
  false
end

def initialize(store, path, target)

def initialize(store, path, target)
  @request_path = target
  super(store, path)
end

def render(*)

def render(*)
  url = ::Middleman::Util.url_for(@store.app, @request_path,
                                  relative: false,
                                  find_resource: true)
  if output
    output.call(path, url)
  else
    <<-END
      <html>
        <head>
          <link rel="canonical" href="#{url}" />
          <meta http-equiv=refresh content="0; url=#{url}" />
          <meta name="robots" content="noindex,follow" />
          <meta http-equiv="cache-control" content="no-cache" />
        </head>
        <body>
        </body>
      </html>
    END
  end
end

def template?

def template?
  true
end