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

Multilingual sitemaps: fix #1610 #1667

Merged
merged 3 commits into from May 2, 2015
Merged

Multilingual sitemaps: fix #1610 #1667

merged 3 commits into from May 2, 2015

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Apr 24, 2015

This implements multilingual sitemaps, where each URL offers the other languages as alternates.

Example:

 <url>
  <loc>http://getnikola.com/es/posts/welcome-to-nikola.html</loc>
  <lastmod>2015-04-24</lastmod>
  <xhtml:link 
                 rel="alternate"
                 hreflang="en"
                 href="http://getnikola.com/posts/welcome-to-nikola.html"
                 />
 </url>

@@ -69,6 +70,13 @@
</sitemap>
"""

alternates_format = """<xhtml:link
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not make it just one line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's copy-pasted from the example in the issue. I don't mind one way or the other :-)

ralsina added a commit that referenced this pull request May 2, 2015
@ralsina ralsina merged commit fc6928a into master May 2, 2015
@ralsina ralsina deleted the multilingual-sitemap branch May 2, 2015 02:10
Kwpolska added a commit that referenced this pull request May 2, 2015
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants