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

Summaries #7

Open
jplatte opened this issue Nov 2, 2023 · 0 comments
Open

Summaries #7

jplatte opened this issue Nov 2, 2023 · 0 comments

Comments

@jplatte
Copy link
Owner

jplatte commented Nov 2, 2023

Zola has support for generating a summary of a page based on a <!-- more --> marker in the content, to display it in overviews. Used on https://matrix.org/blog/ for example. If #6 is implemented the way I'm thinking right now, this is complicated further as a page listing subdirectory pages wants metadata it gets to include summaries. Maybe there are even use cases where people want to render a snippet of the previous and next pages, but I think I'd rather just not support that.

Implementation note: PageMetadata could just contain an optional field for the summary which is set to None by the functions that get the previous and next page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant