aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-03-13 22:38:15 -0700
committerBjørn Erik Pedersen <[email protected]>2024-03-14 10:21:40 +0200
commit48a0fea87afd706efbe3021c332444116af80c97 (patch)
treebd95720562c5e212a2021d76145c5c84ff32649d /hugolib
parent9ca1de09dd397a84dd13e528d8d09930d913d885 (diff)
downloadhugo-48a0fea87afd706efbe3021c332444116af80c97.tar.gz
hugo-48a0fea87afd706efbe3021c332444116af80c97.zip
tpl/tplimpl: Modify figure shortcode to look for page resource
Closes #12244 Closes #12245
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/page_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index b6236ca5f..b0ab7f09c 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -709,7 +709,7 @@ func TestPageWithShortCodeInSummary(t *testing.T) {
assertFunc := func(t *testing.T, ext string, pages page.Pages) {
p := pages[0]
checkPageTitle(t, p, "Simple")
- checkPageContent(t, p, normalizeExpected(ext, "<p>Summary Next Line. <figure><img src=\"/not/real\"/> </figure> . More text here.</p><p>Some more text</p>"))
+ checkPageContent(t, p, normalizeExpected(ext, "<p>Summary Next Line. <figure><img src=\"/not/real\"> </figure> . More text here.</p><p>Some more text</p>"))
checkPageSummary(t, p, "Summary Next Line. . More text here. Some more text")
checkPageType(t, p, "page")
}