projects
/
maven-thymeleaf-skin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8264a3
)
Supressed duplicate entries in breadcrumbs
author
Kai Moritz
<kai@juplo.de>
Mon, 6 May 2019 20:24:23 +0000
(22:24 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 22 Nov 2020 18:20:00 +0000
(19:20 +0100)
src/main/resources/META-INF/maven/site.vm
patch
|
blob
|
history
diff --git
a/src/main/resources/META-INF/maven/site.vm
b/src/main/resources/META-INF/maven/site.vm
index
cabe610
..
bb81305
100644
(file)
--- 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 = ",")