Browse Source

have the json file build for single pages

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
jamesk-patch-1
Toshaan Bharvani 1 year ago
parent
commit
7d0cb77c99
  1. 1
      config/_default/config.toml
  2. 5
      themes/openpowerfoundation/layouts/_default/single.json

1
config/_default/config.toml

@ -16,6 +16,7 @@ enableEmoji = true @@ -16,6 +16,7 @@ enableEmoji = true

[outputs]
home = [ "HTML" , "JSON" , "RSS" ]
page = [ "HTML" , "JSON" ]

[outputFormats]
[outputFormats.RSS]

5
themes/openpowerfoundation/layouts/_default/single.json

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
{
"title": "{{ .Title }}",
"permalink": "{{ .Permalink }}",
"content": "{{ .PlainWords }}"
}
Loading…
Cancel
Save