mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
hugolib, output: Fix RSSLink vs output formats
And remove the now superflous setPageURLs method.
This commit is contained in:
@@ -1346,7 +1346,6 @@ func TestIndexPageSimpleMethods(t *testing.T) {
|
||||
}{
|
||||
{func(n *Page) bool { return n.IsNode() }},
|
||||
{func(n *Page) bool { return !n.IsPage() }},
|
||||
{func(n *Page) bool { return n.RSSLink == "rssLink" }},
|
||||
{func(n *Page) bool { return n.Scratch() != nil }},
|
||||
{func(n *Page) bool { return n.Hugo() != nil }},
|
||||
{func(n *Page) bool { return n.Now().Unix() == time.Now().Unix() }},
|
||||
@@ -1354,8 +1353,6 @@ func TestIndexPageSimpleMethods(t *testing.T) {
|
||||
|
||||
n := s.newHomePage()
|
||||
|
||||
n.RSSLink = "rssLink"
|
||||
|
||||
if !this.assertFunc(n) {
|
||||
t.Errorf("[%d] Node method error", i)
|
||||
}
|
||||
|
Reference in New Issue
Block a user