#set ( $page = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
#set ( $sinkhole = $page.put("uri", "index.html") )
#set ( $sinkhole = $page.put("name", "$project.name") )
+#set ( $crumbs = $project.getClass().forName('java.util.LinkedList').newInstance() )
+#set ( $crumb = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
+#set ( $sinkhole = $crumb.put("uri", $page.uri) )
+#set ( $sinkhole = $crumb.put("name", $page.name) )
+#set ( $sinkhole = $crumbs.push( $crumb ) )
+#set ( $sinkhole = $page.put("crumbs", $crumbs ) )
+#set ( $sinkhole = $pages.put($page.uri, $page) )
#set ( $sinkhole = $stack.push($page) )
#foreach ( $menu in $decoration.body.menus )
## Nur benannte Menüs werden berücksichtigt
#end
## Custom Variablen einlesen
-#set ( $sitePath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() )
-#if ( !$sitePath )
- #set ( $sitePath = "" )
+#set ( $canonicalPath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() )
+#if ( !$canonicalPath )
+ #set ( $canonicalPath = "" )
#end
+#set ( $sitePath = $canonicalPath + $project.version + "/" )
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
<!-- name: $pages.get($alignedFileName).name -->
xmlns="http://www.w3.org/1999/xhtml"
th:replace="~{/templates/layout.html :: layout(
uri='$sitePath$alignedFileName',
+ title=~{:: title},
+ maincontent=~{:: .maincontent},
json='MERGE:
{
- "_names": {
+ "_titles": {
#set($sep = "")
#foreach($page in $pages)
$sep
<head>
<title id="title">#if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end</title>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
- <link rel="canonical" href="$sitePath$alignedFileName"/>
+ <link id="canonical" rel="canonical" href="$canonicalPath$alignedFileName"/>
</head>
<body>
<h2>Path</h2>