X-Git-Url: https://juplo.de/gitweb/?p=maven-thymeleaf-skin;a=blobdiff_plain;f=src%2Fmain%2Fresources%2FMETA-INF%2Fmaven%2Fsite.vm;h=a53b8bd6cd78e6b84256799f52b625b366cb0623;hp=8083a302c3efd501a81146876e444daf7ea033b5;hb=c914c36fb1a2e65e18c6d276a0ccc5a44be78aa8;hpb=345579625749e02ad994bd9af75f2a98a4a983e7 diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index 8083a30..a53b8bd 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -7,7 +7,11 @@ #set ( $stack = $project.getClass().forName('java.util.LinkedList').newInstance() ) #macro ( buildPages $menu ) - #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #if ( $menu.href ) + #set ( $currentItemHref = $PathTool.calculateLink( $menu.href, $relativePath ) ) + #else + #set ( $currentItemHref = '' ) + #end #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) #if ($currentItemHref) @@ -56,10 +60,10 @@ #set ( $childs = $pages.get($page.uri).childs ) #set ( $sinkhole = $page.put("childs", $childs) ) - + #else - + #end #set ( $sinkhole = $pages.put($page.uri, $page) ) @@ -70,6 +74,7 @@ #set( $siteTitle = $menu.title ) #set( $siteAlt = $menu.alt ) #set( $siteImg = $menu.img ) + #set( $sinkhole = $pages.get("index.html").put("childs", $page.childs) ) #end #end @@ -95,12 +100,14 @@ #end ## Custom Variablen einlesen -#set ( $sitePath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() ) -#if ( !$sitePath ) - #set ( $sitePath = "" ) +#set ( $canonicalPath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() ) +#if ( !$canonicalPath ) + #set ( $canonicalPath = "" ) #end +#set ( $sitePath = $canonicalPath + $project.version + "/" ) #set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() ) + @@ -112,14 +119,65 @@ - juplo - $title + #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end - +

Path

@@ -129,8 +187,7 @@


-
-

$shortTitle

+
$bodyContent