Create a gist now

Instantly share code, notes, and snippets.

@walt /json_feed.mtml
Last active May 18, 2017

What would you like to do?
JSON Feed template for Movable Type
{
"version": "https://jsonfeed.org/version/1",
"title": "<$mt:BlogName smarty_pants="1" remove_html="1" escape_for_json="1"$>",
"home_page_url": "<$mt:BlogURL$>",
"feed_url": "<$mt:BlogURL$>feed.json",
"description": "<$mt:BlogDescription smarty_pants="1" remove_html="1" escape_for_json="1"$>",
"favicon": "<$mt:BlogURL$>favicon.ico",
"items": [
<mt:Entries lastn="5">
{
"id": "<$mt:EntryPermalink$>",
"url": "<$mt:EntryPermalink$>",
"title": "<$mt:EntryTitle smarty_pants="1" remove_html="1" escape_for_json="1"$>",
"content_html": "<$mt:EntryBody escape_for_json="1"$>",
"summary": "<$mt:EntryExcerpt escape_for_json="1"$>",
"date_published": "<$mt:EntryDate utc="1" format_name="iso8601"$>",
"date_modified": "<$mt:EntryModifiedDate utc="1" format_name="iso8601"$>",
"author": {
"name": "<$mt:EntryAuthorDisplayName escape_for_json="1"$>"
}
}<mt:Unless name="__last__">,</mt:Unless>
</mt:Entries>
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment