From 811c8193632cb1768f159cdf8ac2819439f5dc9e Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 7 Mar 2022 22:37:47 +0100 Subject: [PATCH] Added a parameter "prefix" that is added to non-canonical uris --- src/main/resources/META-INF/maven/site.vm | 7 ++++++- src/site/xhtml/usage.xhtml | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index 09cef8f..7aecf98 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -118,11 +118,16 @@ #end ## Custom Variablen einlesen +#set ( $pathPrefix = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'prefix' ).getValue() ) +#if ( !$pathPrefix ) + #set ( $pathPrefix = "" ) +#end #set ( $canonicalPath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() ) #if ( !$canonicalPath ) #set ( $canonicalPath = "" ) + #end -#set ( $sitePath = $canonicalPath + $project.version + "/" ) +#set ( $sitePath = $pathPrefix + $canonicalPath + $project.version + "/" ) #set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() ) #set ( $command = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'command' ).getValue() ) #if ( !$command ) diff --git a/src/site/xhtml/usage.xhtml b/src/site/xhtml/usage.xhtml index a9c4e0c..48d4a82 100644 --- a/src/site/xhtml/usage.xhtml +++ b/src/site/xhtml/usage.xhtml @@ -26,6 +26,7 @@

@@ -35,7 +36,7 @@ +

prefix

+

If set, the path is prefixed with the value, when generating the site_uri.

crumbs

Some crumbs, that should be prepended to the breadcrumbs that are computed for the pages.

The crumbs have to be specified in double quotes and must be separated by commas. Example:

-- 2.20.1