From: Kai Moritz Date: Mon, 7 Mar 2022 21:37:47 +0000 (+0100) Subject: Added a parameter "prefix" that is added to non-canonical uris X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=811c8193632cb1768f159cdf8ac2819439f5dc9e;p=maven-thymeleaf-skin Added a parameter "prefix" that is added to non-canonical uris --- 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: