An open API service indexing awesome lists of open source software.

https://github.com/brycerussell/example-theme-with-collection

Example of a `astro-theme-provider` theme with a dynamic page using contnet collections
https://github.com/brycerussell/example-theme-with-collection

Last synced: 10 months ago
JSON representation

Example of a `astro-theme-provider` theme with a dynamic page using contnet collections

Awesome Lists containing this project

README

          

# Example of Theme with Content Collections

### How

1. Theme provides a dynamic route `/[...slug].astro` that creates routes using the `blog` Content Collection
2. User adds content to Collection (in this case `/playground/src/content/blog` for testing) and the markdown files are turned into pages

- [Dynamic `[...slug].astro` route](https://github.com/BryceRussell/example-theme-with-collection/blob/main/package/src/pages/%5B...slug%5D.astro)
- [User defined content/pages using markdown](https://github.com/BryceRussell/example-theme-with-collection/tree/main/playground/src/content/blog)