Although both metadata title as well as every line starting with # generate a h1, but the difference is as follows in the generated HTML. The former doesn’t include an a tag, while the latter does. I guess just including the a tag in the selector helps to not make the title itself appear in the TOC.
> Am 28.09.2017 um 19:38 schrieb Konrad Windszus <konra...@gmx.de>: > > What is the reason why the selector at > https://github.com/apache/sling-site/blob/f7d38e20d4576a37413fb3d31a28060e8dc0ac60/src/main/jbake/templates/page.tpl#L49 > only lists h2 and h3? > >> Am 28.09.2017 um 19:35 schrieb Konrad Windszus <konra...@gmx.de>: >> >> The TOC e.g. at http://sling.apache.org/documentation/bundles/models.html >> still looks a bit weird. >> It only lists the h2 headlines but not the h1 ones. >> The same at http://sling.apache.org/documentation.html. >> In the best case both are listed in the TOC, with h2 with some indentation. >>> Am 28.09.2017 um 19:23 schrieb Bertrand Delacretaz <bdelacre...@apache.org>: >>> >>> On Thu, Sep 28, 2017 at 2:42 PM, Bertrand Delacretaz >>> <bdelacre...@apache.org> wrote: >>>>> ... I have requested activation of the >>>>> new site, https://issues.apache.org/jira/browse/INFRA-15186 ... >>> >>> The new site is live at http://sling.apache.org , source at >>> https://git-wip-us.apache.org/repos/asf?p=sling-site.git >>> >>> -Bertrand >> >