2 <!-- Generated by Apache Maven Doxia Site Renderer#if( $doxiaSiteRendererVersion ) $doxiaSiteRendererVersion#end at $dateFormat.format( $currentDate ) -->
5 ## Automatisch generierte Seiten einlesen
6 #set ( $pages = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
7 #macro ( buildPages $items )
8 #foreach ( $item in $items )
9 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
10 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
11 #set ( $sinkhole = $pages.put( $item.name, $currentItemHref ) )
12 #if ( !$item.items.empty )
13 #buildPages ( $item.items )
17 #foreach ( $menu in $decoration.body.menus )
18 ## Nur benannte Menüs werden berücksichtigt
20 #buildPages ( $menu.items )
25 #set ( $crumbs = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
26 #macro ( searchBreadcrumbTrail $items )
28 #foreach ( $item in $items )
29 #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
30 #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
31 #if ( $currentItemHref == 'index.html' )
32 #set ( $name = $project.name )
34 #set ( $name = $item.name )
36 $sep"$currentItemHref": {
38 #if ( !$item.items.empty )
40 #set ( $sinkhole = $crumbs.put( $currentItemHref , $name) )
41 #searchBreadcrumbTrail ( $item.items )
42 #set ( $sinkhole = $crumbs.pop() )
45 #if ( !$breadcrumbs && $alignedFileName == $currentItemHref )
46 #set ( $breadcrumbs = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
47 ## Den Titel der Seite korrigieren!
48 #set ( $title = "$project.name - $item.name" )
49 #set ( $shortTitle = $name )
50 #set ( $sinkhole = $breadcrumbs.put( 'index.html', $project.name) )
52 #foreach ( $crumb in $crumbs.entrySet() )
53 #set ( $sinkhole = $breadcrumbs.put( $crumb.key , $crumb.value ) )
54 $sepc{ "uri": "$crumb.key", "name": "$crumb.value" }
57 #set ( $sinkhole = $breadcrumbs.put( $alignedFileName , $shortTitle) )
65 <!-- title: $title -->
66 <!-- short title: $shortTitle -->
67 <!-- current page: $alignedFileName -->
70 xmlns="http://www.w3.org/1999/xhtml"
71 xmlns:layout="http://www.thymeleaf.org"
72 layout:decorator="templates/layout"
73 th:with="uri='$alignedFileName'"
76 <title>juplo - $title</title>
77 <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
78 <link rel="canonical" href="$project.url/$alignedFileName"/>
81 <article class="main" layout:fragment="maincontent" juplo:variables='merge:{
82 ## Datenstrukturen für die Navigation vorbereiten
83 #foreach ( $menu in $decoration.body.menus )
84 ## Nur unbenannte Menüs werden berücksichtigt
86 ## Breadcrumb-Pfad suchen
88 #searchBreadcrumbTrail ( $menu.items )
93 <header><h1>$shortTitle</h1></header>