Fixed problems with the page-title
[maven-thymeleaf-skin] / src / main / resources / META-INF / maven / site.vm
index f7e6c8b..86006d7 100644 (file)
       #set ( $childs = $pages.get($page.uri).childs )
       #set ( $sinkhole = $page.put("childs", $childs) )
 
-      <!-- OVERWRITING PAGE - uri: $page.uri, path: $crumbs, name: "$page.name", childs: $page.childs -->
+      <!-- OVERWRITING PAGE - uri: $page.uri -->
     #else
 
-      <!-- NEW PAGE - - - - - uri: $page.uri, path: $crumbs, name: "$page.name", childs: $page.childs -->
+      <!-- NEW PAGE - - - - - uri: $page.uri -->
     #end
 
     #set ( $sinkhole = $pages.put($page.uri, $page) )
 #end
 #set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
 
+<!-- name: $pages.get($alignedFileName).name -->
 <!-- title: $title -->
 <!-- short title: $shortTitle -->
 <!-- current page: $alignedFileName -->
       "
     >
   <head>
-    <title>juplo - $title</title>
+    <title>#if($shortTitle and $shortTitle != '')$title#else$project.name &mdash; $pages.get($alignedFileName).name#end</title>
     <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
     <link rel="canonical" href="$sitePath$alignedFileName"/>
   </head>
     </p>
     <hr />
     <article class="main" layout:fragment="maincontent">
-      <header><h1>$shortTitle</h1></header>
       $bodyContent
     </article>
     <hr />