projects
/
maven-thymeleaf-skin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed problems with the page-title
[maven-thymeleaf-skin]
/
src
/
main
/
resources
/
META-INF
/
maven
/
site.vm
diff --git
a/src/main/resources/META-INF/maven/site.vm
b/src/main/resources/META-INF/maven/site.vm
index
f7e6c8b
..
86006d7
100644
(file)
--- a/
src/main/resources/META-INF/maven/site.vm
+++ b/
src/main/resources/META-INF/maven/site.vm
@@
-56,10
+56,10
@@
#set ( $childs = $pages.get($page.uri).childs )
#set ( $sinkhole = $page.put("childs", $childs) )
#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
#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 ( $sinkhole = $pages.put($page.uri, $page) )
@@
-102,6
+102,7
@@
#end
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
#end
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
+<!-- name: $pages.get($alignedFileName).name -->
<!-- title: $title -->
<!-- short title: $shortTitle -->
<!-- current page: $alignedFileName -->
<!-- title: $title -->
<!-- short title: $shortTitle -->
<!-- current page: $alignedFileName -->
@@
-121,7
+122,7
@@
"
>
<head>
"
>
<head>
- <title>
juplo - $title
</title>
+ <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"/>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
<link rel="canonical" href="$sitePath$alignedFileName"/>
</head>
@@
-134,7
+135,6
@@
</p>
<hr />
<article class="main" layout:fragment="maincontent">
</p>
<hr />
<article class="main" layout:fragment="maincontent">
- <header><h1>$shortTitle</h1></header>
$bodyContent
</article>
<hr />
$bodyContent
</article>
<hr />