From e932d64ce88a53477a6ac3783f4666e2403eea39 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 28 Feb 2021 17:21:00 +0100 Subject: [PATCH] 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" --- src/main/resources/META-INF/maven/site.vm | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.20.1