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

Mutlilingual Sitemaps #112

Open
Ardnived opened this issue Nov 30, 2021 · 3 comments
Open

Mutlilingual Sitemaps #112

Ardnived opened this issue Nov 30, 2021 · 3 comments
Labels
enhancement A general improvement good first issue Good for newcomers

Comments

@Ardnived
Copy link
Collaborator

Read this and implement any relevant recommendations.
https://skryvets.com/blog/2018/05/01/everything-you-need-to-know-about-multilingual-and-multinational-sitemaps/#one-global-sitemap-approach

@Ardnived Ardnived added enhancement A general improvement good first issue Good for newcomers labels Feb 17, 2022
@sushyk
Copy link

sushyk commented Feb 20, 2022

I am interested in implementing this.

@Ardnived
Copy link
Collaborator Author

Ardnived commented Feb 20, 2022

Hi @Sushil-Kumar1999. That would be great, this is a fairly self-contained and straightforward ticket, so it's a good first issue. Here is a full explanation, that would help you to get started.

The crux of this issue is to actually analyse whether our current implementation is doing the best job it can do, based on that article above, and implement anything that's missing. I myself have not read the above article, but here is the situation for the sitemap currently.

  • We are using a Ruby gem called sitemap_generator to create our sitemap.
  • The generated sitemap gets stored in the Google Cloud, then can be accessed through wemeditate.com/sitemap.xml.gz, which is a url that passes through our website server (our website server then fetches the sitemap from Google Cloud and renders it)
  • The sitemap is also linked in the public/robots.txt file, to make sure Google discovers it.
  • The configuration for the sitemap generator can be found in config/sitemap.rb

You should read through that file, and look at sitemap_generator, to understand how the generation works. Basically we are currently generating a single sitemap, with alternates links to list other locales.

One problem which I'm sure does exist is that not all pages on the website have an English version to serve as the base version of the article. I'm not sure what happens in this situation, is the page hidden from the sitemap all together, does it have an empty url, or does it's url simply not work?

You can go ahead and just fork this repository, play around with it, and eventually when you have a solution create a PR. But a good first step might be to just investigate what recommendations we're missing out on, or any problems with the Sitemap, and report them back here.

If you are not already familiar with Ruby on Rails, I suggest reading the README for this repo, which should give you a good overview and some helpful links. If you need more specific help, send me an email at contact@sydevelopers.com and I'll give you my WhatsApp number there. Then I can answer any questions about Rails or the codebase in general.

Please let me know if anything is unclear, or you have any other questions.

@sushyk
Copy link

sushyk commented Feb 20, 2022

@Ardnived I am busy until the first week of March with coursework deadlines at uni one after the other. However, I should be able to take a look at it after that.
I am not familiar with Ruby on Rails so I'll read up on it. Btw, you had earlier posted your contact details in the U.K yogi group (Whatsapp group) so I will contact you if I have any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general improvement good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants