projects
/
maven-thymeleaf-skin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
db6026f
)
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>
Mon, 6 May 2019 20:53:38 +0000
(22:53 +0200)
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
..
75118df
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 -->
@@
-169,14
+170,15
@@
]
#set($sep = ",")
#end
]
#set($sep = ",")
#end
- }
+ },
+ "canonical": "$canonicalPath$alignedFileName"
}
')}"
>
<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 rel="canonical" href="$
canonical
Path$alignedFileName"/>
</head>
<body>
<h2>Path</h2>
</head>
<body>
<h2>Path</h2>