From: Kai Moritz Date: Fri, 8 Jul 2016 07:02:07 +0000 (+0200) Subject: Integrated page-data X-Git-Tag: maven-thymeleaf-skin-1.0.0~24 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ee4f8af3a26d2998c160004e4b1ff216e4094503;p=maven-thymeleaf-skin Integrated page-data --- diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index a973c5c..4fda7f5 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -33,57 +33,38 @@ #else #set ( $name = $item.name ) #end + $sep"$currentItemHref": { + "name": "$name" + #if ( !$item.items.empty ) + ,"childs": { + #set ( $sinkhole = $crumbs.put( $currentItemHref , $name) ) + #searchBreadcrumbTrail ( $item.items ) + #set ( $sinkhole = $crumbs.pop() ) + } + #end #if ( !$breadcrumbs && $alignedFileName == $currentItemHref ) #set ( $breadcrumbs = $project.getClass().forName('java.util.LinkedHashMap').newInstance() ) ## Den Titel der Seite korrigieren! #set ( $title = "$project.name - $item.name" ) #set ( $shortTitle = $name ) #set ( $sinkhole = $breadcrumbs.put( 'index.html', $project.name) ) + #set ( $sepc = '' ) #foreach ( $crumb in $crumbs.entrySet() ) #set ( $sinkhole = $breadcrumbs.put( $crumb.key , $crumb.value ) ) + $sepc{ "uri": "$crumb.key", "name": "$crumb.value" } + #set( $sepc = ',' ) #end #set ( $sinkhole = $breadcrumbs.put( $alignedFileName , $shortTitle) ) + ] #end - $sep"$currentItemHref": { - "name": "$name" - #if ( !$item.items.empty ) - ,"childs": { - #set ( $sinkhole = $crumbs.put( $currentItemHref , $name) ) - #searchBreadcrumbTrail ( $item.items ) - #set ( $sinkhole = $crumbs.pop() ) - } - #end } #set ( $sep =',' ) #end #end -## Datenstrukturen für die Navigation vorbereiten -#foreach ( $menu in $decoration.body.menus ) - ## Nur unbenannte Menüs werden berücksichtigt - #if (!($menu.name)) - ## Breadcrumb-Pfad suchen - "menu": { - #searchBreadcrumbTrail ( $menu.items ) - } - #end -#end - - - - -
+

$shortTitle

$bodyContent