summaryrefslogtreecommitdiffstats
path: root/exampleSite/config.toml
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r--exampleSite/config.toml13
1 files changed, 11 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 3e57fe9..5a3ae85 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -16,9 +16,8 @@ disableKinds = ['RSS']
[outputs]
# TODO:
- # home = [ "HTML", "Atom", "JSON", "humanstxt" ]
# section = [ "HTML", "Atom" ]
- home = [ 'HTML', 'Atom', 'FEED', 'humanstxt' ]
+ home = [ 'HTML', 'Atom', 'FEED', 'JSON', 'humanstxt' ]
# Atom feed.
# For more see: https://validator.w3.org/feed/docs/atom.html#whatIsAtom
@@ -51,6 +50,16 @@ disableKinds = ['RSS']
noUgly = true
permalinkable = false
+# For more see: https://www.jsonfeed.org/
+[outputFormats.JSON]
+ name = 'Json'
+ mediaType = 'application/json'
+ baseName = 'feeds/feed'
+ rel = 'alternate'
+ isPlainText = true
+ isHTML = false
+ noUgly = false
+
# For more see: https://gohugo.io/templates/output-formats/
[outputFormats.humanstxt]
mediaType = 'text/plain'