From 58f744a22380c42c25ee4059bb4b2bcfd255fd53 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 17 May 2022 21:02:53 +0200 Subject: Add json feed --- exampleSite/config.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'exampleSite/config.toml') 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' -- cgit v1.2.3