diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-01-23 11:59:52 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-01-23 11:59:52 +0100 |
commit | cafb1d53c0927e2aef8abff1bf9095c90c6f3067 (patch) | |
tree | be417eccafd052c27b6e51b260616d89ecb43922 /output | |
parent | 4f466db666dded1b6c6d1e6926e170f22164433a (diff) | |
download | hugo-cafb1d53c0927e2aef8abff1bf9095c90c6f3067.tar.gz hugo-cafb1d53c0927e2aef8abff1bf9095c90c6f3067.zip |
docs, output: Add base template lookup variant to docs.json
Diffstat (limited to 'output')
-rw-r--r-- | output/docshelper.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/output/docshelper.go b/output/docshelper.go index ad16d3257..f08b20b01 100644 --- a/output/docshelper.go +++ b/output/docshelper.go @@ -44,12 +44,16 @@ func createLayoutExamples() interface{} { }{ // Taxonomy output.LayoutDescriptor={categories category taxonomy en false Type Section {"Single page in \"posts\" section", LayoutDescriptor{Kind: "page", Type: "posts"}, HTMLFormat}, + {"Base template for single page in \"posts\" section", LayoutDescriptor{Baseof: true, Kind: "page", Type: "posts"}, HTMLFormat}, {"Single page in \"posts\" section with layout set", LayoutDescriptor{Kind: "page", Type: "posts", Layout: demoLayout}, HTMLFormat}, + {"Base template for single page in \"posts\" section with layout set", LayoutDescriptor{Baseof: true, Kind: "page", Type: "posts", Layout: demoLayout}, HTMLFormat}, {"AMP single page", LayoutDescriptor{Kind: "page", Type: "posts"}, AMPFormat}, {"AMP single page, French language", LayoutDescriptor{Kind: "page", Type: "posts", Lang: "fr"}, AMPFormat}, // All section or typeless pages gets "page" as type {"Home page", LayoutDescriptor{Kind: "home", Type: "page"}, HTMLFormat}, + {"Base template for home page", LayoutDescriptor{Baseof: true, Kind: "home", Type: "page"}, HTMLFormat}, {"Home page with type set", LayoutDescriptor{Kind: "home", Type: demoType}, HTMLFormat}, + {"Base template for home page with type set", LayoutDescriptor{Baseof: true, Kind: "home", Type: demoType}, HTMLFormat}, {"Home page with layout set", LayoutDescriptor{Kind: "home", Type: "page", Layout: demoLayout}, HTMLFormat}, {`AMP home, French language"`, LayoutDescriptor{Kind: "home", Type: "page", Lang: "fr"}, AMPFormat}, {"JSON home", LayoutDescriptor{Kind: "home", Type: "page"}, JSONFormat}, |