From: Kai Moritz Date: Sun, 28 Feb 2021 16:21:00 +0000 (+0100) Subject: The index.html from the documentation-root is explicitly added as page X-Git-Tag: maven-thymeleaf-skin-1.1.0~9 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e932d64ce88a53477a6ac3783f4666e2403eea39;p=maven-thymeleaf-skin The index.html from the documentation-root is explicitly added as page * Before, it was only added to the stack as a starting point for the computation of all available pages * The effective entry for the page was only generated, becaus the maven-site-plugin also adds this page as part of the submenu "Project Info" --- diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index b9d030b..1aab317 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -85,6 +85,13 @@ #set ( $page = $project.getClass().forName('java.util.LinkedHashMap').newInstance() ) #set ( $sinkhole = $page.put("uri", "index.html") ) #set ( $sinkhole = $page.put("name", "$project.name") ) +#set ( $crumbs = $project.getClass().forName('java.util.LinkedList').newInstance() ) +#set ( $crumb = $project.getClass().forName('java.util.LinkedHashMap').newInstance() ) +#set ( $sinkhole = $crumb.put("uri", $page.uri) ) +#set ( $sinkhole = $crumb.put("name", $page.name) ) +#set ( $sinkhole = $crumbs.push( $crumb ) ) +#set ( $sinkhole = $page.put("crumbs", $crumbs ) ) +#set ( $sinkhole = $pages.put($page.uri, $page) ) #set ( $sinkhole = $stack.push($page) ) #foreach ( $menu in $decoration.body.menus ) ## Nur benannte Menüs werden berücksichtigt