GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

SITEMAP [Bug]: #1313

Open hadyman opened 5 months ago

hadyman commented 5 months ago

Operating system

windows 10

Publii version

0.44.4

Post editor

None

Bug description

Hello I launch this website https://prestaguardian.com/ with total of 4 pages

the sitemap generated here https://prestaguardian.com/sitemap.xml shows 6 pages

2 extra pages have been added why ? also those pages are a 2xduplication

https://prestaguardian.com/page/2/ https://prestaguardian.com/page/3/

Steps to reproduce

open the lastest version of PUBLII create multiple pages enable sitemap generation publish your website online check the /sitemap.xml/ file online

Relevant log output

No response

dziudek commented 5 months ago

Hi,

Do you have this option enabled?

scr

If not then it is a wrong configuration, not a bug

hadyman commented 5 months ago

hello no it is not enabled https://disk.yandex.com/i/uk8SK2NzBqpZ5A 2024-01-11_18-57-15

dziudek commented 5 months ago

So please enable it and check the sitemap again :)

hadyman commented 5 months ago

Ok but if I do so than Google will never index my home page :(

dziudek commented 5 months ago

It is regarding /page/X URLs not the homepage - you can enable this option and check that homepage has still index,follow while pagination pages uner /page/X has noindex,follow if you want to be sure :)

hadyman commented 5 months ago

Ok because as i understand from documentation in PUBLII website regarding the home page

  1. I should enable HIDDEN PAGE here https://disk.yandex.com/i/fvEvuCb-iN1mAA
  2. I should switch to noindex, nofollow here https://disk.yandex.com/i/LBItyQT3AlSLHw are those 2 setting is correct, or should i reestablish them as standard setting ? 2024-01-11_23-36-50 2024-01-11_23-38-19
bobmitro commented 5 months ago

If you decide to display the post on the front page, the most important step for SEO is to mark this post as hidden and add a 'noindex' tag when assigning it to the front page. This helps prevent duplicate content issues. However, since Pubii is a more blog-oriented CMS, the pagination for the front page is still generated in the header or sitemap, depending on the number of posts.

To circumvent this, you have a couple of options:

  1. either increase the number of posts per page beyond your current limit in the basic theme settings
  2. or, as @dziudek recommended in a prior comment, deactivate pagination in the site settings.
hadyman commented 5 months ago

ok thank you lets see now how Google will rank the website