From 7d0cb77c996cd6b3343c6e69f36d8aefe584488e Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 13 Jan 2022 06:04:04 +0100 Subject: [PATCH] have the json file build for single pages Signed-off-by: Toshaan Bharvani --- config/_default/config.toml | 1 + themes/openpowerfoundation/layouts/_default/single.json | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 themes/openpowerfoundation/layouts/_default/single.json diff --git a/config/_default/config.toml b/config/_default/config.toml index 7d182a7..c2fc960 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -16,6 +16,7 @@ enableEmoji = true [outputs] home = [ "HTML" , "JSON" , "RSS" ] + page = [ "HTML" , "JSON" ] [outputFormats] [outputFormats.RSS] diff --git a/themes/openpowerfoundation/layouts/_default/single.json b/themes/openpowerfoundation/layouts/_default/single.json new file mode 100644 index 0000000..0bcd530 --- /dev/null +++ b/themes/openpowerfoundation/layouts/_default/single.json @@ -0,0 +1,5 @@ +{ +"title": "{{ .Title }}", +"permalink": "{{ .Permalink }}", +"content": "{{ .PlainWords }}" +}