okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
250 stars 133 forks source link

Site map on multilanguage site #827

Open pelloq1 opened 3 years ago

pelloq1 commented 3 years ago

bug

What happened: When I build my site and send my sitemaps on google searchConsole I get 2 errors on the main language sitemap.

In facts the english version (secondary language),is Ok,and have only 424 lines.

The main language (french) has 462 lines, and 2 URLs that are not set (I out a image to see line numbers) image

Google give me theses errors : URL : Ligne 431 Balise parent : url Tag : link Attribut : href URL : Ligne 450 Balise parent : url Tag : link Attribut : href

On the english site map, the "https://www.abacustranslations.ch/categories/" page is not present (reason why is less in number of line).

You can see that, the site is online here : https://www.abacustranslations.ch/

And the site maps are here : https://www.abacustranslations.ch/sitemap.xml (OK reference on 3 others one) https://www.abacustranslations.ch/fr/sitemap.xml (main language = problem described above) https://www.abacustranslations.ch/en/sitemap.xml (secondary language = no problem) https://www.abacustranslations.ch/de/sitemap.xml (secondary language = problem described above)

Environment:

# Site settings
baseURL = "https://www.abacustranslations.ch/"
languageCode = "fr-ch"
title = "Abacus Traductions"
theme = "syna"
postcss = "true"

DefaultContentLanguage = "fr"

# Google Analytics tracking
googleAnalytics = "UA-xxx"

[languages]
  [languages.fr]
    title = "Abacus Traductions SA"
    weight = 1
  [languages.de]
    title = "Abacus Übersetzungen AG"
    weight = 2
  [languages.en]
    title = "Abacus Translations Ltd"
    weight = 3

disableKinds = ["RSS", "taxonomy", "taxonomyTerm"]
stp-ip commented 3 years ago

Seems like taxonomyTerm should be "term" within the current Hugo versions. So this is a bug in itself I think.

The underlying issue might need to be fixed within the sitemap code, but in general with taxonomy and term disabled, categories (part of taxonomy) should show up afaik.

Thanks for reporting. Good catch.