-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial JSON Feed support * Specify JSON Feed templates as extra source files * Wrap descriptionJson field with quotes * Escape description field within hakyll itself * Add title to JSON Feed item * Reorganize some code * Add docstring to escapeString * Add mailto URL to the author if email is present * Address review points - Make function names consistent with the rest - Model string escaping logic according to RFC8259 * Format * Make naming more consistent * Fix escaping logic * Update the feed tutorial to include JSON feed * Update the title of feed tutorial * Document that bodies go into `content_html` C.f. #975 (comment) --------- Co-authored-by: Alexander Batischev <[email protected]>
- Loading branch information
Showing
6 changed files
with
142 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "$root$$url$", | ||
"url": "$root$$url$", | ||
"content_html": "$description$", | ||
"title": "$title$", | ||
"date_published": "$published$", | ||
"date_modified": "$updated$" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "https://www.jsonfeed.org/version/1.1", | ||
"title": "$title$", | ||
"home_page_url": "$root$", | ||
"feed_url": "$root$$url$", | ||
$if(authorName)$ | ||
"authors": [ | ||
{ | ||
"name": "$authorName$" | ||
$if(authorEmail)$ | ||
, "url": "mailto:$authorEmail$" | ||
$endif$ | ||
} | ||
], | ||
$endif$ | ||
"items": [ $body$ ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters