Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Exclude Pagination Pages #163
It's not mandatory.
Thanks @fabiomux, your example helped me to exclude the pagination pages.
I also couldn't keep the default path that
My configuration ended like this:
Just wanted to leave this note for anyone else who winds up on this thread...front matter defaults work pretty well for this, but depending on your paginate path you may wind up in a scenario where removing paginated URLs also removes your main blog landing page. That is what happened to me, when I was using
In this case you'll need to change your
#!/usr/bin/env bash count=$1 for ((i=2; i<=count; i++)); do mkdir blog/$i echo "---" > blog/$i/index.html echo "redirect_to: /blog/page/$i" >> blog/$i/index.html echo "sitemap: false" >> blog/$i/index.html echo "---" >> blog/$i/index.html done
I had 19 paginated URLs at that time, so just run it like this
Hope this helps someone. I also did a more detailed write up on this on my blog.
Why would we be interested in getting rid of the pagination in the sitemaps.xml?
Wouldn't adding a
I'm noticing Google is not updating my page as quick as it should. And that's leasing to articles not being indexed quickly.
Right now I have:
<url> <loc>https://mypage.com/blog/page/4/</loc> </url> <url> <loc>https://mypage.com/blog/myarticle.html</loc> <lastmod>2017-11-20T13:05:38+01:00</lastmod>
Why is not