From: Kai Moritz Date: Mon, 6 May 2019 20:24:23 +0000 (+0200) Subject: Supressed duplicate entries in breadcrumbs X-Git-Tag: maven-thymeleaf-skin-1.0.1~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=c135045d70518bd864302a4c30cc73dea7d18172;p=maven-thymeleaf-skin Supressed duplicate entries in breadcrumbs --- diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index cabe610..bb81305 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -157,10 +157,14 @@ $siteCrumbs #set($csep = ",") #end + #set($last = "") #foreach($crumb in $page.crumbs) - $csep - "$sitePath$crumb.uri" - #set($csep = ",") + #if($sitePath+$crumb.uri != $last) + $csep + "$sitePath$crumb.uri" + #set($csep = ",") + #set($last = $sitePath+$crumb.uri) + #end #end ] #set($sep = ",")