summaryrefslogtreecommitdiffstats
path: root/hugolib/taxonomy_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-01 12:30:41 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-01 12:30:41 +0100
commitcc15864744210497325b69d8c3b4130c9c5156ac (patch)
treef7cf07369d80a29e8792a804c100f702e1146e4d /hugolib/taxonomy_test.go
parentb7a672fd22794ea7c32a958739c6b12aba5dadf8 (diff)
hugolib: Only return RSSLink when RSS is available
Fixes #1302
Diffstat (limited to 'hugolib/taxonomy_test.go')
-rw-r--r--hugolib/taxonomy_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go
index f23693403..3c6dc2707 100644
--- a/hugolib/taxonomy_test.go
+++ b/hugolib/taxonomy_test.go
@@ -15,6 +15,7 @@ package hugolib
import (
"fmt"
+ "html/template"
"path/filepath"
"reflect"
"testing"
@@ -125,6 +126,10 @@ others:
s := h.Sites[0]
+ // Issue #1302
+ term := s.getPage(KindTaxonomyTerm, "others")
+ require.Equal(t, template.URL(""), term.RSSLink)
+
// Issue #3070 preserveTaxonomyNames
if preserveTaxonomyNames {
helloWorld := s.getPage(KindTaxonomy, "others", "Hello Hugo world")