Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

bnomei/kirby-robots-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Robots Writer

Version 0.2

Control your robots.txt file through a config.php value.

Installation instructions

Setup

Into your config.php:

c::set('robots.txt', '
User-agent: *
Disallow: /
Sitemap: https://example.com/sitemap.xml
');

robots.txt output:

User-agent: *
Disallow: /
Sitemap: https://example.com/sitemap.xml

Alternative solution - Snippet

Make sure your snippet exists and is registered:

c::set('robots.txt', snippet('robots.txt', [], true));

Alternative solution - Site

Make sure you have a field called robots in site.

c::set('robots.txt', site()->robots());

Changelog

0.2

  • Complete rewrite. Made it much simpler.

0.1

  • Initial release

Requirements

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

Credits