X-Git-Url: https://juplo.de/gitweb/?p=maven-thymeleaf-skin;a=blobdiff_plain;f=src%2Fmain%2Fresources%2FMETA-INF%2Fmaven%2Fsite.vm;h=50bd7ca954b68011ab633996b36bbcc38e4af3c4;hp=86006d7135c79208a025e1ad17e1bcfc63ae8c8d;hb=028805129ca80fab45237caae76d34c048a65c71;hpb=b4577ed4f3ffde6a7fcb2f77f8b3a7efbfe6a765 diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index 86006d7..50bd7ca 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) @@ -96,10 +100,11 @@ #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() ) @@ -114,17 +119,65 @@ - #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end + #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end - +

Path

@@ -134,7 +187,7 @@


-
+
$bodyContent