okjuan / vbook

0 stars 0 forks source link

Implement revisions #25

Closed okjuan closed 1 month ago

okjuan commented 1 month ago

Resolves #15

Example

By setting show_revisions: true in the front matter of _posts/good-shower.md, a new page is generated for each revision of the post:

This is what vbook/revs/good-shower/-2/ looks like:

Screenshot 2024-09-22 at 6 42 36 PM

The current implementation is confusing because it uses two numbering systems. One that is in negative numbers because it is relative to the newest version of the post and the other in positive numbers that counts up from the first revision to the last. That's why is 3 bolded for revision -2. I should fix this.