Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sitemap index remains .xml when each file is compressed with .gz extension #11

Open
mandye opened this issue Dec 15, 2011 · 1 comment

Comments

@mandye
Copy link

mandye commented Dec 15, 2011

Shoud add one option to

def add(map)
raise ArgumentError, 'XmlSitemap::Map object requred!' unless map.kind_of?(XmlSitemap::Map)
raise ArgumentError, 'Map is empty!' if map.empty?

  @maps << {
    :loc     => map.index_url(@offsets[map.group]),
    :lastmod => map.created_at.utc.iso8601
  }
  @offsets[map.group] += 1

end

add '.gz' to index entries, if people choose :gzip => true for each map

@sosedoff
Copy link
Owner

Can you work on this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants