X-Git-Url: https://juplo.de/gitweb/?p=maven-thymeleaf-skin;a=blobdiff_plain;f=src%2Fsite%2Ftemplate.vm;h=af51847af98e837e603d53c893b0753af9502d7a;hp=6a5b765560895b8397826169e336de45286f2d0c;hb=8191ffb48ddff970ebafaa064fd6fc87b3a93ab3;hpb=52bcfa23d17b56430c61d14645e804eef7eb8140 diff --git a/src/site/template.vm b/src/site/template.vm index 6a5b765..af51847 100644 --- a/src/site/template.vm +++ b/src/site/template.vm @@ -54,14 +54,14 @@ #else - + #end #set ( $sinkhole = $pages.put($page.uri, $page) ) #else - #else(no name)--> + #else(no name)--> #set( $siteTitle = $menu.title ) #set( $siteAlt = $menu.alt ) #set( $siteImg = $menu.img ) @@ -89,10 +89,18 @@ #end #end +## Custom Variablen einlesen +#set ( $sitePath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() ) +#if ( !$sitePath ) + #set ( $sitePath = "" ) +#end +#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() ) + + @@ -100,15 +108,15 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.thymeleaf.org" layout:decorator="templates/layout" - th:with="uri='$alignedFileName'" + th:with="uri='$sitePath$alignedFileName'" > juplo - $title - + -
+

$shortTitle

$bodyContent