#set ( $sinkhole = $page.put("childs", $project.getClass().forName('java.util.LinkedHashMap').newInstance()) )
#set ( $sinkhole = $stack.push( $page ) )
+ #if ($menu.title)
+ #set( $sinkhole = $page.put("title", $menu.title) )
+ #end
+ #if ($menu.alt)
+ #set( $sinkhole = $page.put("alt", $menu.alt) )
+ #end
+ #if ($menu.img)
+ #set( $sinkhole = $page.put("img", $menu.img) )
+ #end
+
#foreach ( $item in $menu.items )
#buildPages ( $item )
#end
#else
- <!-- DONE WITH MENUE ---- #if($page.name)$page.name#else(no name)#end -->
+ <!-- DONE WITH MENUE ---- #if($page.name)$page.name-->#else(no name)-->
+ #set( $siteTitle = $menu.title )
+ #set( $siteAlt = $menu.alt )
+ #set( $siteImg = $menu.img )
+ #end
+
#end
#end
<link rel="canonical" href="$project.url/$alignedFileName"/>
</head>
<body>
- <article class="main" layout:fragment="maincontent" juplo:variables='merge:{"pages":{#set($sep = "")#foreach($page in $pages)$sep"$page.uri":{"name":"$page.name",#if(!$page.childs.isEmpty())"childs":{#set($csep = "")#foreach($child in $page.childs.entrySet())$csep"$child.key":"$child.value"#set($csep = ",")#end},#end"crumbs":[#set($csep = "")#foreach($crumb in $page.crumbs)$csep{"uri":"$crumb.uri","name":"$crumb.name"}#set($csep = ",")#end]}#set($sep = ",")#end}}'>
+ <article class="main" layout:fragment="maincontent" juplo:variables='merge:{"pages":{#set($sep = "")#foreach($page in $pages)$sep"$page.uri":{"name":"$page.name",#if(!$page.childs.isEmpty())"childs":{#set($csep = "")#foreach($child in $page.childs.entrySet())$csep"$child.key":"$child.value"#set($csep = ",")#end},#end"crumbs":[#set($csep = "")#foreach($crumb in $page.crumbs)$csep{"uri":"$crumb.uri","name":"$crumb.name"}#set($csep = ",")#end]#if($page.title),"title":"$page.title"#end#if($page.alt),"alt":"$page.alt"#end#if($page.img),"img":"$page.img"#end}#set($sep = ",")#end}#if($siteTitle),"site_title":"$siteTitle"#end#if($siteAlt),"site_alt":"$siteAlt"#end#if($siteImg),"siet_img":"$siteImg"#end}'>
<header><h1>$shortTitle</h1></header>
$bodyContent
</article>