diff options
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 6316afc98..9fc9a9675 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -533,17 +533,7 @@ e`, filepath.FromSlash("public/sect/doc8/index.html"), "<div class=\"document\">\n\n\n<p><strong>Shortcodes:</strong> <em>b: b c: c</em></p>\n</div>", }, - { - "sect/doc9.mmark", ` ---- -menu: - main: - parent: 'parent' ---- -**Shortcodes:** *b: {{< b >}} c: {{% c %}}*`, - filepath.FromSlash("public/sect/doc9/index.html"), - "<p><strong>Shortcodes:</strong> <em>b: b c: c</em></p>\n", - }, + // Issue #1229: Menus not available in shortcode. { "sect/doc10.md", `--- @@ -562,6 +552,9 @@ tags: "sect/doc11.md", `--- tags: - Bugs +menu: + main: + parent: 'parent' --- **Tags:** {{< tags >}}`, filepath.FromSlash("public/sect/doc11/index.html"), @@ -1390,7 +1383,7 @@ outputs: ["html", "css", "csv", "json"] b.Build(BuildCfg{}) - //helpers.PrintFs(b.Fs.Destination, "public", os.Stdout) + // helpers.PrintFs(b.Fs.Destination, "public", os.Stdout) for i := 0; i < numPages; i++ { b.AssertFileContent(fmt.Sprintf("public/page%d/index.html", i), "Short-HTML") |