#set ( $sitePath = "" )
#end
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
+#set ( $parent = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'parent' ).getValue() )
<!-- title: $title -->
<!-- short title: $shortTitle -->
<link rel="canonical" href="$sitePath$alignedFileName"/>
</head>
<body
- thymeproxy:variables="merge:{"pages":{#set($sep = "")#foreach($page in $pages)$sep"$sitePath$page.uri":{"name":"$page.name",#if(!$page.childs.isEmpty())"childs":{#set($csep = "")#foreach($child in $page.childs.entrySet())$csep"$sitePath$child.key":"$child.value"#set($csep = ",")#end},#end"crumbs":[#set($csep = "")#if($siteCrumbs)$siteCrumbs#set($csep = ",")#end#foreach($crumb in $page.crumbs)$csep{"uri":"$sitePath$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),"site_img":"$siteImg"#end}"
+ thymeproxy:variables="merge:{"pages":{#if($parent)$parent#end#set($sep = "")#foreach($page in $pages)$sep"$sitePath$page.uri":{"name":"$page.name",#if(!$page.childs.isEmpty())"childs":{#set($csep = "")#foreach($child in $page.childs.entrySet())$csep"$sitePath$child.key":"$child.value"#set($csep = ",")#end},#end"crumbs":[#set($csep = "")#if($siteCrumbs)$siteCrumbs#set($csep = ",")#end#foreach($crumb in $page.crumbs)$csep{"uri":"$sitePath$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),"site_img":"$siteImg"#end}"
>
<h2>Path</h2>
<p>
$bodyContent
</article>
<hr />
+ <h2>Common</h2>
+ <ul>
+ <li><strong>Parent</strong>: $parent</li>
+ <li><strong>Title</strong>: $title</li>
+ <li><strong>Short Title</strong>: $shortTitle</li>
+ <li><strong>Current</strong>: $alignedFileName</li>
+ <li><strong>Path</strong>: $sitePath</li>
+ <li><strong>Crumbs</strong>: $siteCrumbs</li>
+ <li><strong><code>title</code></strong>: $siteTitle</li>
+ <li><strong><code>alt</code></strong>: $siteAlt</li>
+ <li><strong><code>img</code></strong>: $siteImg</li>
+ </ul>
<h2>Pages</h2>
- <p>
- <ul>
- #foreach($page in $pages)<li><a href="$page.uri">$page.name</a></li>#end
- </ul>
- </p>
+ <ul>
+ #foreach($page in $pages)
+ <li>
+ <a href="$sitePath$page.uri" title="$page.title">
+ #if($page.img)
+ <img src="$page.img" alt="$page.alt"/>
+ #end
+ $page.name
+ </a>
+ #if($page.title)
+ <code>title</code>=$page.title
+ #end
+ #if($page.img)
+ <code>img</code>=$page.img
+ #end
+ #if($page.alt)
+ <code>alt</code>=$page.alt
+ #end
+ #if(!$page.childs.isEmpty())
+ <br />
+ Childs:
+ <ol>
+ #foreach($child in $page.childs.entrySet())
+ <li><a href="$sitePath$child.key">$child.value</a></li>
+ #end
+ </ol>
+ #end
+ </li>
+ #end
+ </ul>
+ <h2>Crumbs</h2>
+ <ol>
+ #foreach($crumb in $page.crumbs)
+ <li><a href="$sitePath$crumb.uri">$crumb.name</a></li>
+ #end
+ </ol>
</body>
</html>