Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert pages to map #669

Open
markdumay opened this issue Dec 23, 2023 · 0 comments
Open

Convert pages to map #669

markdumay opened this issue Dec 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@markdumay
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
The section-list partial renders a collection of pages as either group of cards, nav, or list. Currently, the page collection is passed as argument to the referenced partials. This limits the option to pass data, such as frontmatter parameters, directly.

Describe the solution you'd like
Pass a map of key-value pairs to assets/card-group.html, assets/nav.html, and assets/list.html instead of a page collection. Move the pagination to the section-list partial to reduce the complexity. Finally, support a new kind to handle data input.

Describe alternatives you've considered
N/A

Additional context
Many Content Management Systems allow direct editing of frontmatter variables. Supporting this data entry improves the editing experience.

@markdumay markdumay added the enhancement New feature or request label Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant