pulsundzeit / kirby-static-paths-api
Kirby plugin that generates static paths used by static site generators like Next.js
v1.0.0
2022-03-22 18:05 UTC
Requires
- php: >=7.4
- getkirby/composer-installer: ^1.1
This package is not auto-updated.
Last update: 2024-05-16 02:49:53 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