aboutsummaryrefslogtreecommitdiff
path: root/hswg/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'hswg/main.go')
-rw-r--r--hswg/main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/hswg/main.go b/hswg/main.go
index 2a46c6e..dfc6ed3 100644
--- a/hswg/main.go
+++ b/hswg/main.go
@@ -236,9 +236,12 @@ func main() {
sort.Strings(e.backlinks)
- backlinks := []string{}
+ backlinks, last := []string{}, ""
for _, name := range e.backlinks {
- backlinks = append(backlinks, makeLink(&entries, name))
+ if name != last {
+ backlinks = append(backlinks, makeLink(&entries, name))
+ }
+ last = name
}
if len(backlinks) > 0 {