jplatte / hinoki

A simple, yet very flexible static site generator.
GNU Affero General Public License v3.0
9 stars 2 forks source link

Summaries #7

Open jplatte opened 1 year ago

jplatte commented 1 year ago

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.