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=cabe6102420a146acb84a3a4ad5fa8444d347a46;hb=c914c36fb1a2e65e18c6d276a0ccc5a44be78aa8;hpb=5c8553e67fbb60ee2911ca6024a680bac286570d diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index cabe610..a53b8bd 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -100,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() ) @@ -157,10 +158,14 @@ $siteCrumbs #set($csep = ",") #end + #set($last = "") #foreach($crumb in $page.crumbs) - $csep - "$sitePath$crumb.uri" - #set($csep = ",") + #if($sitePath+$crumb.uri != $last) + $csep + "$sitePath$crumb.uri" + #set($csep = ",") + #set($last = $sitePath+$crumb.uri) + #end #end ] #set($sep = ",") @@ -172,7 +177,7 @@ #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end - +

Path