From 4245a308205e5572110f27dac138209dfd6ad9ec Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 13 Mar 2017 17:57:53 +0100 Subject: [PATCH] Projekt-Seite erstellt: Velocity-Template - thymeproxy:variables --- src/site/template.vm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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

    -- 2.20.1