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().
In the past, it didn't matter that all pages within a site had a “table of contents”
<div>
, because thePage
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 thetoc()
function inPage
to return the<div>
tags when required.Continuing in this vein, the same could be said of
nav_footer()
andcopyright()
.