X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2FMETA-INF%2Fmaven%2Fsite.vm;h=b9d030bccfbe592baf4584d0aa30aecbe64acfe3;hb=020e51b9e2d24c9d8cd450f49b5bcdf6bceeedca;hp=bb813051a08e88471bcdb9c0d48699718e01d369;hpb=c135045d70518bd864302a4c30cc73dea7d18172;p=maven-thymeleaf-skin diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index bb81305..b9d030b 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() ) @@ -120,9 +121,11 @@ xmlns="http://www.w3.org/1999/xhtml" th:replace="~{/templates/layout.html :: layout( uri='$sitePath$alignedFileName', + title=~{:: title}, + maincontent=~{:: .maincontent}, json='MERGE: { - "_names": { + "_titles": { #set($sep = "") #foreach($page in $pages) $sep @@ -176,7 +179,7 @@ #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end - +

Path