From: Kai Moritz Date: Mon, 6 May 2019 20:53:38 +0000 (+0200) Subject: Normal links are renderd with a version-subdirectory - canonical without X-Git-Tag: maven-thymeleaf-skin-1.0.1~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4fa3df5cd8a89e13863a5a21766da28aa70f5c77;p=maven-thymeleaf-skin Normal links are renderd with a version-subdirectory - canonical without --- diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index bb81305..50bd7ca 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() ) @@ -176,7 +177,7 @@ #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end - +

Path