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

Add a method for generating sitemap url #139

Closed
PikachuEXE opened this issue Jan 27, 2014 · 2 comments
Closed

Add a method for generating sitemap url #139

PikachuEXE opened this issue Jan 27, 2014 · 2 comments

Comments

@PikachuEXE
Copy link

I need to generate the URL for robot.txt
I am doing it this way now:

module SeoHelper
  SITEMAP_INDEX_FILE_NAME = 'sitemap.xml.gz'

  def uploaded_sitemap_url
    [
      SitemapGenerator::Sitemap.sitemaps_host,
      SitemapGenerator::Sitemap.sitemaps_path,
      SITEMAP_INDEX_FILE_NAME,
    ].join
  end
end

But due to #124 it might be dependent on the option set
So it might be better to have a method to generate it

@kjvarga
Copy link
Owner

kjvarga commented Feb 5, 2014

SitemapGenerator::Sitemap.sitemap_index_url is what you want.

@kjvarga kjvarga closed this as completed Feb 5, 2014
@PikachuEXE
Copy link
Author

Thx, maybe it can be added to README?

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