mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
@@ -54,7 +54,6 @@ title: P1
|
||||
b.Build(BuildCfg{})
|
||||
|
||||
b.AssertFileContent("public/p1/index.html", `Link First Link|PARTIAL1_EDITED PARTIAL2_EDITEDEND`)
|
||||
|
||||
}
|
||||
|
||||
func TestRenderHooks(t *testing.T) {
|
||||
@@ -243,7 +242,6 @@ SHORT3|
|
||||
|
||||
// https://github.com/gohugoio/hugo/issues/7349
|
||||
b.AssertFileContent("public/docs/p8/index.html", "Docs Level: 1")
|
||||
|
||||
}
|
||||
|
||||
func TestRenderHooksDeleteTemplate(t *testing.T) {
|
||||
@@ -271,7 +269,6 @@ title: P1
|
||||
|
||||
b.Build(BuildCfg{})
|
||||
b.AssertFileContent("public/p1/index.html", `<p><a href="https://www.google.com" title="Google's Homepage">First Link</a></p>`)
|
||||
|
||||
}
|
||||
|
||||
func TestRenderHookAddTemplate(t *testing.T) {
|
||||
@@ -297,11 +294,9 @@ title: P1
|
||||
b.Build(BuildCfg{})
|
||||
|
||||
b.AssertFileContent("public/p1/index.html", `<p>html-render-link</p>`)
|
||||
|
||||
}
|
||||
|
||||
func TestRenderHooksRSS(t *testing.T) {
|
||||
|
||||
b := newTestSitesBuilder(t)
|
||||
|
||||
b.WithTemplates("index.html", `
|
||||
@@ -352,12 +347,10 @@ P3. [I'm an inline-style link](https://www.example.org)
|
||||
P2: <p>P1. xml-link: https://www.bep.is|</p>
|
||||
P3: <p>P3. xml-link: https://www.example.org|</p>
|
||||
`)
|
||||
|
||||
}
|
||||
|
||||
// https://github.com/gohugoio/hugo/issues/6629
|
||||
func TestRenderLinkWithMarkupInText(t *testing.T) {
|
||||
|
||||
b := newTestSitesBuilder(t)
|
||||
b.WithConfigFile("toml", `
|
||||
|
||||
@@ -400,11 +393,9 @@ Image:
|
||||
<p>Some regular <strong>markup</strong>.</p>
|
||||
<p>html-image: image.jpg|Text: Hello<br> Goodbye|Plain: Hello GoodbyeEND</p>
|
||||
`)
|
||||
|
||||
}
|
||||
|
||||
func TestRenderString(t *testing.T) {
|
||||
|
||||
b := newTestSitesBuilder(t)
|
||||
|
||||
b.WithTemplates("index.html", `
|
||||
@@ -433,7 +424,6 @@ RSTART:<p><strong>Bold Block Markdown</strong></p>
|
||||
RSTART:<em>italic org mode</em>:REND
|
||||
RSTART:Hook Heading: 2:REND
|
||||
`)
|
||||
|
||||
}
|
||||
|
||||
// https://github.com/gohugoio/hugo/issues/6882
|
||||
@@ -460,5 +450,4 @@ func TestRenderStringOnListPage(t *testing.T) {
|
||||
} {
|
||||
b.AssertFileContent("public/"+filename, `<strong>Hello</strong>`)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user