PhrozenByte / pico-robots

This is Pico's official robots plugin to add a robots.txt and sitemap.xml to your website. Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
8 stars 1 forks source link

Update installation instruction #2

Closed edison23 closed 1 year ago

edison23 commented 1 year ago

Please state clearly in the installation instructions that the theme directory needs to be in the same directory as the PicoRobots.php file. The directory isn't mentioned at all, so when the plugin didn't work, I put the files into my own theme's directory. Only the PHP error log directed me as to where this plugin's theme directory is expected.

Put the instructions to Readme.md > Install > the section that starts with "If you're rather using one of Pico's pre-built release packages,".

Thank you very much.

PhrozenByte commented 1 year ago

Valid point. You wanna open a PR to add these instructions?

By the way, you actually weren't wrong with your idea to add the Twig templates to your theme: This is indeed possible. It allows you to overwrite the plugin's templates in your theme without the need to fiddle around with the plugin's files. However, you'd still need the directory in the plugin's directory, i.e. both then. You wanna add this to the README.md too?

edison23 commented 1 year ago

Thanks for the confirmation and additional details, and sorry for the late reply. Here's the PR with the fix: 3a45e31417ed16c0e058406de8b676f51acd1ee7

edison23 commented 1 year ago

Thanks for the confirmation and additional details, and sorry for the late reply. Here's the PR with the fix: 3a45e31

Sorry, I screwed up and linked my own fork. This is the PR: https://github.com/PhrozenByte/pico-robots/pull/3