RyanofTinellb / Smeagol

A suite of programs for creating and maintaining a constructed language website.
http://www.tinellb.com
0 stars 0 forks source link

Empty ToC still being given ToC formatting #30

Closed RyanofTinellb closed 5 years ago

RyanofTinellb commented 5 years ago

In the past, it didn't matter that all pages within a site had a “table of contents” <div>, because the Page object would return an empty string if that page shouldn't have one. But now, given the formatting for a <div> could appear even if the <div> is empty, it makes more sense for the toc() function in Page to return the <div> tags when required.

Continuing in this vein, the same could be said of nav_footer() and copyright().