From b8627ccf237dc11b958bf6038568a7978cbaede4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 6 May 2019 22:53:38 +0200 Subject: [PATCH] Normal links are renderd with a version-subdirectory - canonical without --- src/main/resources/META-INF/maven/site.vm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index bb81305..75118df 100644 --- 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 -#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() ) @@ -169,14 +170,15 @@ ] #set($sep = ",") #end - } + }, + "canonical": "$canonicalPath$alignedFileName" } ')}" > #if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end - +

Path

-- 2.20.1