vito / booklit

a pretty lit content authoring system
https://booklit.page
MIT License
175 stars 55 forks source link

error if calling \title twice #28

Closed vito closed 3 years ago

vito commented 3 years ago

When quickly jotting down notes, I had a document like this:

\title{Foo}

\title{Bar}

I expected to be able to navigate to foo.html, but it returned 404 because the title was overridden to Bar, resulting in bar.html.

This is pretty obviously an error (the second \title should be in its own \section) so it should be caught early to make troubleshooting easier.