shithub: hugo

Download patch

ref: 10287263f529181d3169668b044cb84e2e3b049a
parent: 27e88154af2dd9af6d0523d6e67b612e6336f91c
author: Bjørn Erik Pedersen <[email protected]>
date: Thu May 18 17:37:29 EDT 2017

output: Fix output format mixup in example

See #3481

--- a/output/docshelper.go
+++ b/output/docshelper.go
@@ -46,7 +46,7 @@
 		{`AMP home, with theme "demoTheme".`, LayoutDescriptor{Kind: "home"}, true, "", AMPFormat},
 		{"JSON home, no theme.", LayoutDescriptor{Kind: "home"}, false, "", JSONFormat},
 		{fmt.Sprintf(`CSV regular, "layout: %s" in front matter.`, demoLayout), LayoutDescriptor{Kind: "page", Layout: demoLayout}, false, "", CSVFormat},
-		{fmt.Sprintf(`JSON regular, "type: %s" in front matter.`, demoType), LayoutDescriptor{Kind: "page", Type: demoType}, false, "", CSVFormat},
+		{fmt.Sprintf(`JSON regular, "type: %s" in front matter.`, demoType), LayoutDescriptor{Kind: "page", Type: demoType}, false, "", JSONFormat},
 		{"HTML regular.", LayoutDescriptor{Kind: "page"}, false, "", HTMLFormat},
 		{"AMP regular.", LayoutDescriptor{Kind: "page"}, false, "", AMPFormat},
 		{"Calendar blog section.", LayoutDescriptor{Kind: "section", Section: "blog"}, false, "", CalendarFormat},