X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fsite%2Ftemplate.vm;h=2588a099393f0e6722ca59a3179b95d0ac73f580;hb=93cb4275f384a2e341fc31bd4e674a8d6ae3043d;hp=003c8d293c164a0cd6976f0764d059c107b71c51;hpb=465eccb645bdb37210860f2771287ba7c450dd54;p=simple-mapper diff --git a/src/site/template.vm b/src/site/template.vm index 003c8d2..2588a09 100644 --- a/src/site/template.vm +++ b/src/site/template.vm @@ -101,6 +101,7 @@ #set ( $sitePath = "" ) #end #set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() ) +#set ( $parent = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'parent' ).getValue() ) @@ -114,17 +115,22 @@ 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

    @@ -137,11 +143,54 @@ $bodyContent
    +

    Common

    +

    Pages

    -

    -

    -

    + +

    Crumbs

    +
      + #foreach($crumb in $page.crumbs) +
    1. $crumb.name
    2. + #end +