#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
-
<!-- title: $title -->
<!-- short: $shortTitle -->
<!-- Current: $alignedFileName -->
-<!-- Breadcrumbs: $breadcrumbs -->
-
-<!--
-#set ( $sep = '' )
-"$alignedFileName": [
- #foreach( $crumb in $breadcrumbs.entrySet() )
- $sep
- { "uri": "$crumb.key", "name": "$crumb.value" }
- #set ( $sep = ',' )
- #end
-]
--->
<html
xmlns="http://www.w3.org/1999/xhtml"
<link rel="canonical" href="$project.url/$alignedFileName"/>
</head>
<body>
- <article class="main" layout:fragment="maincontent">
+ <article class="main" layout:fragment="maincontent" juplo:variables='merge:{
+## 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
+ "pages": {
+ #searchBreadcrumbTrail ( $menu.items )
+ }
+ #end
+#end
+}'>
<header><h1>$shortTitle</h1></header>
$bodyContent
</article>