thepoddi / kirby3-seokit
SEO Kit for Kirby 3 including sitemap.xml and robotx.txt
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
This package is auto-updated.
Last update: 2024-03-07 05:57:48 UTC
README
SEO Plugin for Kirby 3.
In the first step, this plugin combines the Kirby 2 Plugins Kirby Plugin: Robots and Kirby Plugin: Sitemap in one SEO Kit for Kirby 3. More features like Meta Tags, Structured Data and options via panel are on my todo list.
Installation
Download
Download and copy this repository to /site/plugins/seokit
.
Git submodule
Include this repository as a submodule
git submodule add https://github.com/thepoddi/kirby3-seokit.git site/plugins/seokit
Composer
composer require thepoddi/kirby3-seokit
Usage
This plugin sets a robots file to /robots.txt
and a sitemap file to /sitemap.xml
as a kirby route. There is no actual file generated.
Config
There are several config options you can edit via Kirby’s config file /site/config/config.php
.
robots.txt
Ignore Pages
Ignore specific pages by URI - example: 'blog/my-article'. (array) Default: error
'thepoddi.seokit.robots.disallow.pages' => array( 'error' ),
Ignore pages by intended templates. (array) Default: error
'thepoddi.seokit.robots.disallow.templates' => array( 'error' ),
Ignore unlisted pages. (boolean) Default: true
'thepoddi.seokit.robots.disallow.unlisted' => true,
Set Sitemap File
Set sitemap file in robots.txt. (string) Default: sitemap.xml
'thepoddi.seokit.robots.sitemap' => 'sitemap.xml',
sitemap.xml
Ignore Pages
Ignore pages by uid. (array) Default: error
'thepoddi.seokit.sitemap.ignore.pages' => array( 'error' ),
Ignore pages by intended templates. (array) Default: error
'thepoddi.seokit.sitemap.ignore.templates' => array( 'error' ),
Ignore unlisted pages. (boolean) Default: true
'thepoddi.seokit.sitemap.ignore.unlisted' => true,
Prioritize Pages
Set high priority pages by uid. (array) Default: home
'thepoddi.seokit.sitemap.important.pages' => array( 'home' ),
Set high priority pages by intended template. (array) Default: home
'thepoddi.seokit.sitemap.important.templates' => array( 'home' ),
Include Image Sitemap
Include image tags in sitemap Google Image Sitemaps. (boolean) Default: true
'thepoddi.seokit.sitemap.include.images' => true,
Authors
Patrick Schumacher - GitHub · Website
License
This project is licensed under the MIT License - see the LICENSE file for details.