Output HTML and JSON
tags:
outputs
json
Description/Summary
Note: A single.json is required to be at a valid location in the template lookup hierarchy for the JSON outputs to be created.
Here’s the JSON output version of this page.
Content
Note: A single.json is required to be at a valid location in the
template lookup hierarchy for the JSON outputs to be created.
Here’s the JSON output version of this page.
Page (Debug)
Page Params (Debug)
| Key | Type | Value |
| draft | bool |
false
|
| iscjklanguage | bool |
false
|
| lastmod | time.Time |
2017-11-15 19:04:09 -0500 -0500
|
| outputs | output.Formats |
| OutputFormat Variable | Value |
| Name |
"HTML"
|
| MediaType |
| media.Type{MainType:"text", SubType:"html", Delimiter:".", FirstSuffix:media.SuffixInfo{Suffix:"html", FullSuffix:".html"}, mimeSuffix:"", suffixesCSV:"html"} (type:media.Type) |
|
| Path |
""
|
| BaseName |
"index"
|
| Rel |
"canonical"
|
| Protocol |
""
|
| IsPlainText |
false
|
| IsHTML |
true
|
| NoUgly |
false
|
| NotAlternative |
false
|
| OutputFormat Variable | Value |
| Name |
"JSON"
|
| MediaType |
| media.Type{MainType:"application", SubType:"json", Delimiter:".", FirstSuffix:media.SuffixInfo{Suffix:"json", FullSuffix:".json"}, mimeSuffix:"", suffixesCSV:"json"} (type:media.Type) |
|
| Path |
""
|
| BaseName |
"index"
|
| Rel |
"alternate"
|
| Protocol |
""
|
| IsPlainText |
true
|
| IsHTML |
false
|
| NoUgly |
false
|
| NotAlternative |
false
|
|
| tags | []string |
"outputs"
"json"
|
| title | string |
"Output HTML and JSON"
|
File Object (Debug)
| FileInfo Variable | Value |
| UniqueID |
"bc61b545bf2741e040a5c0896090a390"
|
| BaseFileName |
"output-html-and-json"
|
| TranslationBaseName |
"output-html-and-json"
|
| Lang |
"en"
|
| Section |
"posts"
|
| LogicalName |
"output-html-and-json.md"
|
| Dir |
"posts/"
|
| Ext |
"md"
|
| Path |
"posts/output-html-and-json.md"
|