X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fsite%2Ftemplate.vm;h=2588a099393f0e6722ca59a3179b95d0ac73f580;hb=93cb4275f384a2e341fc31bd4e674a8d6ae3043d;hp=29b5cba2ed7676d57bd8d8b7efa936494a92af95;hpb=fcf58a084786e33f9f6fe78ec2f5867b9778593a;p=simple-mapper
diff --git a/src/site/template.vm b/src/site/template.vm
index 29b5cba..2588a09 100644
--- a/src/site/template.vm
+++ b/src/site/template.vm
@@ -70,6 +70,7 @@
#set( $siteTitle = $menu.title )
#set( $siteAlt = $menu.alt )
#set( $siteImg = $menu.img )
+ #set( $sinkhole = $pages.get("index.html").put("childs", $page.childs) )
#end
#end
@@ -100,6 +101,7 @@
#set ( $sitePath = "" )
#end
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
+#set ( $parent = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'parent' ).getValue() )
@@ -113,14 +115,22 @@
xmlns="http://www.w3.org/1999/xhtml"
xmlns:layout="http://www.thymeleaf.org"
layout:decorator="templates/layout"
- th:with="uri='$sitePath$alignedFileName'"
+ th:with="title='$title', uri='$sitePath$alignedFileName'"
>
juplo - $title
-
+
+
+
+
+
+
+
-
+
Path
@@ -128,16 +138,59 @@
-
+
$bodyContent
+ Common
+
+ - Parent: $parent
+ - Title: $title
+ - Short Title: $shortTitle
+ - Current: $alignedFileName
+ - Path: $sitePath
+ - Crumbs: $siteCrumbs
+ title
: $siteTitle
+ alt
: $siteAlt
+ img
: $siteImg
+
Pages
-
-
-
+
+ #foreach($page in $pages)
+ -
+
+ #if($page.img)
+
+ #end
+ $page.name
+
+ #if($page.title)
+
title
=$page.title
+ #end
+ #if($page.img)
+ img
=$page.img
+ #end
+ #if($page.alt)
+ alt
=$page.alt
+ #end
+ #if(!$page.childs.isEmpty())
+
+ Childs:
+
+ #foreach($child in $page.childs.entrySet())
+ - $child.value
+ #end
+
+ #end
+
+ #end
+
+ Crumbs
+
+ #foreach($crumb in $page.crumbs)
+ - $crumb.name
+ #end
+