WIP
authorKai Moritz <kai@juplo.de>
Fri, 8 Jul 2016 10:31:38 +0000 (12:31 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 10 Jul 2016 11:46:57 +0000 (13:46 +0200)
src/site/template.vm

index a5b4c46..0fa7aae 100644 (file)
     <link rel="canonical" href="$sitePath$alignedFileName"/>
   </head>
   <body>
+    <h2>Path</h2>
+    <p>
+      <ol>
+        #foreach($crumb in $pages.get($alignedFileName).crumbs)<li><a href="$crumb.uri">$crumb.name</a></li>#end
+      </ol>
+    </p>
+    <hr />
     <article class="main" layout:fragment="maincontent" juplo: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"$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),"siet_img":"$siteImg"#end}'>
       <header><h1>$shortTitle</h1></header>
       $bodyContent