{"id":15683969,"url":"https://github.com/phrozenbyte/pico-file-prefixes","last_synced_at":"2025-05-07T15:06:29.379Z","repository":{"id":57041248,"uuid":"62843343","full_name":"PhrozenByte/pico-file-prefixes","owner":"PhrozenByte","description":"This is Pico's official file prefixes plugin to drop file prefixes from page URLs.","archived":false,"fork":false,"pushed_at":"2018-07-24T17:59:38.000Z","size":21,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T15:06:16.427Z","etag":null,"topics":["pico","pico-file-prefixes","picocms","picocms-plugin","seo","url-shortener"],"latest_commit_sha":null,"homepage":"http://picocms.org/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhrozenByte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-07T23:01:07.000Z","updated_at":"2022-10-03T00:47:41.000Z","dependencies_parsed_at":"2022-08-24T00:50:51.975Z","dependency_job_id":null,"html_url":"https://github.com/PhrozenByte/pico-file-prefixes","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fpico-file-prefixes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fpico-file-prefixes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fpico-file-prefixes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fpico-file-prefixes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhrozenByte","download_url":"https://codeload.github.com/PhrozenByte/pico-file-prefixes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902614,"owners_count":21822261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pico","pico-file-prefixes","picocms","picocms-plugin","seo","url-shortener"],"created_at":"2024-10-03T17:09:22.412Z","updated_at":"2025-05-07T15:06:29.358Z","avatar_url":"https://github.com/PhrozenByte.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pico File Prefixes\n==================\n\nThis is the repository of Pico's official file prefixes plugin.\n\nPico is a stupidly simple, blazing fast, flat file CMS. See http://picocms.org/ for more info.\n\n`PicoFilePrefixes` removes file prefixes (e.g. date identifiers) from page URLs. For example, the blog article `content/blog/20160707.visit-us-on-github.md` normally corresponds to the page URL http://example.com/pico/blog/20160707.visit-us-on-github, however, by installing this plugin, the article will be accessible through the much more user-friendly URL http://example.com/pico/blog/visit-us-on-github. This makes organizing your website's pages on the filesystem easier than ever before.\n\nInstall\n-------\n\nYou can either install `PicoFilePrefixes` using [Composer](https://getcomposer.org/), or using a single PHP plugin file. We recommend you to use Composer whenever possible, because it allows you to keep the plugin up-to-date way more easily.\n\nIf you use a Composer-based installation of Pico and want to either remove or install `PicoFilePrefixes`, simply open a shell on your server and navigate to Pico's install directory (e.g. `/var/www/html/pico/`). Run `composer remove phrozenbyte/pico-file-prefixes` to remove `PicoFilePrefixes`, or run `composer require phrozenbyte/pico-file-prefixes` (via [Packagist.org](https://packagist.org/packages/phrozenbyte/pico-file-prefixes)) to install `PicoFilePrefixes`.\n\nIf you really want to install `PicoFilePrefixes` using a single PHP plugin file, [download the latest release](https://github.com/PhrozenByte/pico-file-prefixes/releases/latest) and upload the `PicoFilePrefixes.php` file to the `plugins` directory of your Pico installation (e.g. `/var/www/html/pico/plugins/`).\n\n`PicoFilePrefixes` requires Pico 2.0+\n\nConfig\n------\n\nThe plugin recursively drops file prefixes of all files in the `content/blog/` directory by default. You can specify other directories by altering the `PicoFilePrefixes.recursiveDirs` and/or `PicoFilePrefixes.dirs` config variables (both expect YAML lists) in your `config/config.php`. The former parses all files of a directory recursively (i.e. including all its subfolders), whereas the latter parses just files in this particular directory. The default configuration looks like the following:\n\n```yaml\nPicoFilePrefixes:\n  recursiveDirs:\n    - blog\n  dirs: []\n```\n\nIf you want to additionally enable the plugin for the `content/showcase/` directory, try the following configuration:\n\n```yaml\nPicoFilePrefixes:\n  recursiveDirs:\n    - blog\n    - showcase\n  dirs: []\n```\n\nIf you want to enable the plugin for any folder, try the following:\n\n```yaml\nPicoFilePrefixes:\n  recursiveDirs:\n    - .\n  dirs: []\n```\n\nTo enable the plugin for pages in the `content/misc/` directory only (i.e. not including subfolders like `content/misc/sub/`), try the following:\n\n```yaml\nPicoFilePrefixes:\n  recursiveDirs: []\n  dirs:\n    - misc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrozenbyte%2Fpico-file-prefixes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrozenbyte%2Fpico-file-prefixes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrozenbyte%2Fpico-file-prefixes/lists"}