X-Git-Url: https://juplo.de/gitweb/?p=maven-thymeleaf-skin;a=blobdiff_plain;f=src%2Fsite%2Ftemplate.vm;h=af51847af98e837e603d53c893b0753af9502d7a;hp=27ecbdf307ee9b45b3855355dead7537464108be;hb=8191ffb48ddff970ebafaa064fd6fc87b3a93ab3;hpb=a262df930a08a2829ebe652c27c34352ab01e156 diff --git a/src/site/template.vm b/src/site/template.vm index 27ecbdf..af51847 100644 --- a/src/site/template.vm +++ b/src/site/template.vm @@ -19,6 +19,16 @@ #set ( $sinkhole = $page.put("childs", $project.getClass().forName('java.util.LinkedHashMap').newInstance()) ) #set ( $sinkhole = $stack.push( $page ) ) + #if ($menu.title) + #set( $sinkhole = $page.put("title", $menu.title) ) + #end + #if ($menu.alt) + #set( $sinkhole = $page.put("alt", $menu.alt) ) + #end + #if ($menu.img) + #set( $sinkhole = $page.put("img", $menu.img) ) + #end + #foreach ( $item in $menu.items ) #buildPages ( $item ) #end @@ -44,14 +54,19 @@ #else - + #end #set ( $sinkhole = $pages.put($page.uri, $page) ) #else - + #else(no name)--> + #set( $siteTitle = $menu.title ) + #set( $siteAlt = $menu.alt ) + #set( $siteImg = $menu.img ) + #end + #end #end @@ -74,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() ) + + @@ -85,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