tsackton / taelgar

0 stars 0 forks source link

Bug in page status calculation #18

Closed tsackton closed 9 months ago

tsackton commented 9 months ago

If a page has just a single event, e.g. (DR:: ) line, apparently that tag is associated with the page, not the list. This means that if either born or died (or created or destroyed) is missing, the page gets the value of the DR tag for the missing element, not undefined.

You can test with the Odim Mavdyrson.md page - if you delete born: or died:.

Not quite sure the best way to fix, except by checking existence of created/born/destroyed/died frontmatter.

Pushed a fix but might not be the optimal fix.