pulsundzeit / kirby-static-paths-api
Kirby plugin that generates static paths used by static site generators like Next.js
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 87
Dependents: 0
Suggesters: 0
Security: 0
Type:kirby-plugin
pkg:composer/pulsundzeit/kirby-static-paths-api
Requires
- php: >=7.4
- getkirby/composer-installer: ^1.1
This package is not auto-updated.
Last update: 2024-10-31 05:29:08 UTC
README
A Kirby plugin that generates static paths used by static site generators like Next.js
Installation
Manual
Download and copy this repository to /site/plugins/kirby-static-paths-api of your Kirby installation.
Composer
composer require pulsundzeit/kirby-static-paths-api
Usage
The plugin exposes an custom endpoint at /paths that returns an JSON object with all paths. With the use of the template parameter, it can return only pages with a given template.
Example:
paths?template=default→ returns paths for all pages with the default template