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
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