commit 607f5b201fde3b73d3b8795dd106ee19c2b15223
parent 9b95d1b81e278aef0fe091f36ee03f8195888f89
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date: Mon, 12 Nov 2018 13:20:55 -0500
Complete the json mustache template
Diffstat:
2 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/config.lua b/config.lua
@@ -63,16 +63,16 @@ local siteconfig = {
"application/pdf",
},
- feedtypes = {
- atom = {
- name = "feed.atom",
- extension = ".xml",
- },
- rss2 = {
- name = "feed.rss2",
- extension = ".xml",
- },
- },
+ -- feedtypes = {
+ -- atom = {
+ -- name = "feed.atom",
+ -- extension = ".xml",
+ -- },
+ -- rss2 = {
+ -- name = "feed.rss2",
+ -- extension = ".xml",
+ -- },
+ -- },
metaskeyorder = {"bridgy","cite","citeurl","content","date","datetime","description","id","keywords","permalink","shortlink","template","title"},
}
diff --git a/templates/feed/json.mustache b/templates/feed/json.mustache
@@ -1,21 +1,22 @@
{
+"title": "JSON Feed de {{{ site.domainname }}}",
+"description": "{{{ site.metas.description }}}",
"version": "https://jsonfeed.org/version/1",
-"user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://furbo.org/feed/json -- and add it your reader.",
-"home_page_url": "https://furbo.org",
-"feed_url": "https://furbo.org/feed/json",
-"title": "furbo.org",
-"description": "by Craig Hockenberry",
+"home_page_url": "{{{ site.url }}}",
+"feed_url": "{{{ site.url }}}/feed.json",
"items": [
-{
-"id": "https://furbo.org/2018/09/04/software-survival/",
-"url": "https://furbo.org/2018/09/04/software-survival/",
-"title": "Software Survival",
-"content_html": "",
-"date_published": "2018-09-04T19:56:12+00:00",
-"date_modified": "2018-09-04T19:56:12+00:00",
-"author": {
-"name": "Craig Hockenberry"
-}
-},
+{{# entries }}
+ {
+ "id": "{{{ id }}}",
+ "url": "{{{ permalink }}}",
+ "title": "{{{ title }}}",
+ "content_html": "{{ content }}",
+ "date_published": "{{ date }}T{{ datetime }}Z",
+ "date_modified": "{{ updated }}Z",
+ "author": {
+ "name": "{{{ site.author.name }}}"
+ }
+ },
+{{/ entries }}
],
}