Sha256: 3870e5d013d82b4eb0f533e2e98c2f49c16d2790225be278ac78d1bd2383380b
Contents?: true
Size: 991 Bytes
Versions: 3
Compression:
Stored size: 991 Bytes
Contents
module Middleman module Sitemap class AliasResource < ::Middleman::Sitemap::Resource attr_accessor :output def initialize(store, path, alias_path) @alias_path = alias_path super(store, path) end def source_file nil end def template? false end def render(*args, &block) %[ <html> <head> <meta http-equiv=refresh content="0; url=#{@alias_path}" /> <meta name="robots" content="noindex,follow" /> <meta http-equiv="cache-control" content="no-cache" /> </head> <body> <a href="#{@alias_path}">You are being redirected.</a> </body> </html> ] end def binary? false end def raw_data {} end def ignored? false end def metadata @local_metadata.dup end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
middleman-alias-0.0.9 | lib/middleman-alias/alias-resource.rb |
middleman-alias-0.0.8 | lib/middleman-alias/alias-resource.rb |
middleman-alias-0.0.7 | lib/middleman-alias/alias-resource.rb |