mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-07 19:29:51 +03:00
Make Page.Content a method that returns interface{}
To prepare for a `Resource.Content` method. See #4622
This commit is contained in:
parent
94c8b29c39
commit
417c5e2b67
8 changed files with 28 additions and 24 deletions
|
@ -69,7 +69,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
|
|||
|
||||
require.Len(t, s.RegularPages, 1)
|
||||
|
||||
output := string(s.RegularPages[0].Content)
|
||||
output := string(s.RegularPages[0].content)
|
||||
|
||||
if !strings.Contains(output, expected) {
|
||||
t.Errorf("Got\n%q\nExpected\n%q", output, expected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue