kenshodigital/kirby-sitemap
最新稳定版本:1.0.0
Composer 安装命令:
composer require kenshodigital/kirby-sitemap
包简介
Adds an XML sitemap to Kirby projects.
README 文档
README
Adds an XML sitemap to Kirby projects.
General
The plugin adds a /sitemap.xml route and returns an XML sitemap, following Google’s best practices for multilingual sites.
Further reading
Usage
Installation
composer require kenshodigital/kirby-sitemap ^1.0
Development
Collection
Out of the box, the sitemap includes all listed pages via a sitemap collection. This can be easily customized with your own collection, though.
<?php declare(strict_types=1); use Kirby\Cms\Pages; use Kirby\Cms\Site; return fn(Site $site): Pages => $site ->index() ->template(templates: [ 'home', 'about', 'contact', 'product', 'article', ]) ->listed();
Further reading
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-06