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 #if ( !$breadcrumbs && $alignedFileName == $currentItemHref )
37 #set ( $breadcrumbs = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
38 ## Den Titel der Seite korrigieren!
39 #set ( $title = "$project.name - $item.name" )
40 #set ( $shortTitle = $name )
41 #set ( $sinkhole = $breadcrumbs.put( 'index.html', $project.name) )
42 #foreach ( $crumb in $crumbs.entrySet() )
43 #set ( $sinkhole = $breadcrumbs.put( $crumb.key , $crumb.value ) )
45 #set ( $sinkhole = $breadcrumbs.put( $alignedFileName , $shortTitle) )
47 $sep"$currentItemHref": {
49 #if ( !$item.items.empty )
51 #set ( $sinkhole = $crumbs.put( $currentItemHref , $name) )
52 #searchBreadcrumbTrail ( $item.items )
53 #set ( $sinkhole = $crumbs.pop() )
61 ## Datenstrukturen für die Navigation vorbereiten
62 #foreach ( $menu in $decoration.body.menus )
63 ## Nur unbenannte Menüs werden berücksichtigt
65 ## Breadcrumb-Pfad suchen
67 #searchBreadcrumbTrail ( $menu.items )
72 <!-- title: $title -->
73 <!-- short title: $shortTitle -->
74 <!-- current page: $alignedFileName -->
75 <!-- breadcrumbs: $breadcrumbs -->
80 #foreach( $crumb in $breadcrumbs.entrySet() )
82 { "uri": "$crumb.key", "name": "$crumb.value" }
89 xmlns="http://www.w3.org/1999/xhtml"
90 xmlns:layout="http://www.thymeleaf.org"
91 layout:decorator="templates/layout"
92 th:with="uri='$alignedFileName'"
95 <title>juplo - $title</title>
96 <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
97 <link rel="canonical" href="$project.url/$alignedFileName"/>
100 <article class="main" layout:fragment="maincontent">
101 <header><h1>$shortTitle</h1></header>