projects
/
maven-thymeleaf-skin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c135045
)
Normal links are renderd with a version-subdirectory - canonical without
author
Kai Moritz
<kai@juplo.de>
Mon, 6 May 2019 20:53:38 +0000
(22:53 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 22 Nov 2020 18:20:00 +0000
(19:20 +0100)
src/main/resources/META-INF/maven/site.vm
patch
|
blob
|
history
diff --git
a/src/main/resources/META-INF/maven/site.vm
b/src/main/resources/META-INF/maven/site.vm
index
bb81305
..
50bd7ca
100644
(file)
--- a/
src/main/resources/META-INF/maven/site.vm
+++ b/
src/main/resources/META-INF/maven/site.vm
@@
-100,10
+100,11
@@
#end
## Custom Variablen einlesen
#end
## Custom Variablen einlesen
-#set ( $
site
Path = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() )
-#if ( !$
site
Path )
- #set ( $
site
Path = "" )
+#set ( $
canonical
Path = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() )
+#if ( !$
canonical
Path )
+ #set ( $
canonical
Path = "" )
#end
#end
+#set ( $sitePath = $canonicalPath + $project.version + "/" )
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
<!-- name: $pages.get($alignedFileName).name -->
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
<!-- name: $pages.get($alignedFileName).name -->
@@
-176,7
+177,7
@@
<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}" />
<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="$site
Path$alignedFileName"/>
+ <link
id="canonical" rel="canonical" href="$canonical
Path$alignedFileName"/>
</head>
<body>
<h2>Path</h2>
</head>
<body>
<h2>Path</h2>