X-Git-Url: https://juplo.de/gitweb/?p=simple-mapper;a=blobdiff_plain;f=src%2Fsite%2Ftemplate.vm;fp=src%2Fsite%2Ftemplate.vm;h=972829aa50df4e58ff5483660808be2f726a7ad1;hp=003c8d293c164a0cd6976f0764d059c107b71c51;hb=4245a308205e5572110f27dac138209dfd6ad9ec;hpb=f4f9c96bee8576e4bcac881c1e5d66c15531e22c diff --git a/src/site/template.vm b/src/site/template.vm index 003c8d2..972829a 100644 --- a/src/site/template.vm +++ b/src/site/template.vm @@ -114,17 +114,16 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.thymeleaf.org" layout:decorator="templates/layout" - th:with=" - uri='$sitePath$alignedFileName', - json='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}' - " + th:with="title='$title', uri='$sitePath$alignedFileName'" > juplo - $title - +

Path