PHPackages                             wearejust/kirby3-xmlsitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wearejust/kirby3-xmlsitemap

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

wearejust/kirby3-xmlsitemap
===========================

kirby3 plugin to generate an xml-based sitemap

1.3.1(2y ago)09.7k↓33.3%1MITPHPPHP &gt;=7.1

Since Aug 19Pushed 2y agoCompare

[ Source](https://github.com/wearejust/kirby3-xmlsitemap)[ Packagist](https://packagist.org/packages/wearejust/kirby3-xmlsitemap)[ RSS](/packages/wearejust-kirby3-xmlsitemap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (30)Used By (0)

Kirby3 xmlsitemap
=================

[](#kirby3-xmlsitemap)

[![Kirby Version](https://camo.githubusercontent.com/7b370e18e7fb8d0e30049139f795666f2b1e449550d140e704fb220fdfe8bdb7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4b697262792d33626c61636b2e737667)](https://camo.githubusercontent.com/7b370e18e7fb8d0e30049139f795666f2b1e449550d140e704fb220fdfe8bdb7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4b697262792d33626c61636b2e737667) [![Issues](https://camo.githubusercontent.com/35a8f0409d187215c64f9db1956430462c0e3f8d0d99fb830a649cb5e263f599/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6f6d7a31332f6b69726279332d786d6c736974656d61702e737667)](https://github.com/omz13/kirby3-xmlsitemap/issues)

**Requirement:** Kirby 3.0

Coffee, Beer, etc.
------------------

[](#coffee-beer-etc)

A humungous amount of work went into creating this plugin. Seriously it did. Just look at the source code if you dare, because there is a lot going on in there to make *your* life easier (even if it means that *I* have to spend days hunched over a keyboard doing this so you don't have to!). Who knew that traversing through all the pages in a kirby 3 site and spitting out the right xml elements could be so much fun (and I use the word fun there in its alternative-reality meaning). If you run a multi-language site you should be jumping up and down with joy because it gets the sitemaps right, and trust me when I say this is not as easy to do as you might think it is. For kicks, and to stop your processor getting hammered because generating process is a bit intense, the result is cached, and writing that cache code involved a lot of coffee. I also get a dopamine hit if you star this repo. So go star it. Pretty please!

This plugin is free but if you use it in a commercial project to show your support you are welcome (greatly encouraged) to:

- [make a donation 🍻](https://www.paypal.me/omz13/10) or
- [buy me ☕☕](https://buymeacoff.ee/omz13) or
- [buy a Kirby license using this affiliate link](https://a.paddle.com/v2/click/1129/36191?link=1170)

Documentation
-------------

[](#documentation)

### Purpose

[](#purpose)

For a kirby3 site, this plugin (*omz13/xmlsitemap*) automatically generates an xml-based sitemap at `/sitemap.xml` and provides a prettifier (`/sitemap.xsl`) for humans.

- Generates a [sitemap](https://www.sitemaps.org); [valid](https://webmaster.yandex.com/tools/sitemap/) too.
- Works with both single-language and multi-language sites.
- For multilingual sites an entry (``) is generated for each language, and within each `` there are appropriate `` members, one for each language with [hreflang](https://support.google.com/webmasters/answer/189077) computed from the language's configured `locale`), and an additional pseudo-language of [x-default](https://webmasters.googleblog.com/2013/04/x-default-hreflang-for-international-pages.html) per the site's default language.
- The generated page can be cached for a determined amount of time, c.f. `cacheTTL` in *Configuration*. This not only improves the response time if it can be retrieved from the cache, but also reduces load on your server's cpu (because it takes effort to generate).
- For all pages, `` and `` are given; `` is not given because "its a bag of noise"; `` is also not given because it does not affect ranking.
- `
