From e3fe58f61b654026dd945eaadf5a6f876d74308b Mon Sep 17 00:00:00 2001
From: Kai Moritz
Date: Mon, 13 Mar 2017 18:00:40 +0100
Subject: [PATCH] Projekt-Seite erstellt: Velocity-Template - in HTML Sichtbare
Debug-Ausgabe
---
src/site/template.vm | 52 +++++++++++++++++++++++++++++++++++++++-----
1 file changed, 47 insertions(+), 5 deletions(-)
diff --git a/src/site/template.vm b/src/site/template.vm
index 0bcbd44..d9fc9bb 100644
--- a/src/site/template.vm
+++ b/src/site/template.vm
@@ -142,11 +142,53 @@
$bodyContent
+ Common
+
+ - 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
+