Re-add site.RSSLink (and deprecate it)

Fixes #11110
This commit is contained in:
Bjørn Erik Pedersen 2023-06-14 12:04:32 +02:00
parent bb9377b5e5
commit 90b2674ddc
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
3 changed files with 18 additions and 7 deletions

View file

@ -15,6 +15,7 @@ package hugolib
import (
"fmt"
"html/template"
"strings"
"testing"
@ -248,7 +249,7 @@ baseName = "feed"
s := h.Sites[0]
// Issue #3450
c.Assert(s.RSSLink(), qt.Equals, "http://example.com/blog/feed.xml")
c.Assert(s.RSSLink(), qt.Equals, template.URL("http://example.com/blog/feed.xml"))
}
// Issue #3614