From 676ea22c20f303f84050852b67592091c00054ed Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 28 Feb 2021 22:04:07 +0100 Subject: [PATCH] Made the thymeleaf-command that decorates the template configurable --- src/main/resources/META-INF/maven/site.vm | 9 ++------- src/site/site.xml | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index 3e84b93..39f55ec 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -124,6 +124,7 @@ #end #set ( $sitePath = $canonicalPath + $project.version + "/" ) #set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() ) +#set ( $command = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'command' ).getValue() ) @@ -135,13 +136,7 @@ - + $title diff --git a/src/site/site.xml b/src/site/site.xml index 8295a60..51950a0 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -25,6 +25,7 @@ /maven-thymeleaf-skin/ "/index.html","/projects.html" + th:replace="~{/templates/layout.html :: layout(uri='' + ~{:: code[class='site_uri']/text()}, title=~{:: title}, maincontent=~{:: .maincontent}, json='MERGE:' + ~{:: pre[class='json']/text()})}" -- 2.20.1