Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for Sitemaps #42
It's a general question instead of a bug, is Posteaf generating the
If don't, any plans to add it into the alpha version? I believe this is a very important feature since Postleaf is SEO friendly.
Nothing in core yet. Is the sitemap something we can generate automatically? What does an ideal sitemap contain? (All pages, just the nav, other?) Is it auto-discovered or does each page have to reference it somehow? I don't use them, so pardon the questions. If I can get a consensus on how to implement one then I'll jump on it, but if implementation is subjective it may be better to wait for plugins.
For the time being you can use sitemap generators such as XML Sitemaps
I would say this is best left to plugins so SEO specialists can implement this functionality and maintain it separately. SEO is a ever changing so maintaining changes in core could be a pain. Just my opinion
changed the title from
[Question] How to create a sitemap?
Support for Sitemaps
May 2, 2017
I'm not worried about how to implement it on the technical side. I need to know what a sitemap should look like for 99% of sites to determine if it really belongs in core.
If there's a standardized, unopinionated way to create them, let's do it. If implementation varies wildly based on individual preference, it probably belongs in a plugin.
I'm not going to get into an argument over SEO best practices here. If that's the case, the feature is likely too opinionated to add to core. Right now, Postleaf already supports JSON-LD, OpenGraph, and Twitter Cards and none of my sites have trouble indexing things.
Ghost's implementation looks like this: https://blog.ghost.org/sitemap.xml
What's better for a Postleaf website? All posts/pages in
Max. entries of a single sitemap.xml: 50k
It's possible to have one sitemap.xml which links to other sitemap.xml files.
Hope that helps a little bit.
As of 6449441, Postleaf generates a single-page sitemap automatically. The sitemap is accessible at
Pages included in the sitemap (with priority):
I don't see many users hitting 50,000 posts or the XML file being larger than 10MB. It's probably inevitable that someone will, but that edge case can be handled down the road.