承接 kenshodigital/kirby-sitemap 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-06