Path
++
-
+ #foreach($crumb in $pages.get($alignedFileName).crumbs)
- $crumb.name #end +
+
$shortTitle
+
Pages
++
-
+ #foreach($page in $pages)
- $page.name #end +
X-Git-Url: https://juplo.de/gitweb/?p=maven-thymeleaf-skin;a=blobdiff_plain;f=src%2Fsite%2Ftemplate.vm;h=7afc95855d5d9bebc354a1c31772696b30c406fd;hp=6a5b765560895b8397826169e336de45286f2d0c;hb=f4e7facbdd99a957d892e2e4b64ca06ec9974114;hpb=52bcfa23d17b56430c61d14645e804eef7eb8140 diff --git a/src/site/template.vm b/src/site/template.vm index 6a5b765..7afc958 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,17 +108,31 @@ 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'" >
+
+