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.

v1.0.0 2022-03-22 18:05 UTC

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