<%# /** * index.ejs - Generates a JSON feed * Expects: data.vods = [{ id, title, url, description, publishedAt, ... }] */ %> <% const feed = { version: "https://jsonfeed.org/version/1", title: `${meta('title')} VODs`, home_page_url: "https://futureporn.net", feed_url: "https://futureporn.net/vods/feed.json", description: meta('description'), icon: "https://futureporn.net/images/futureporn-icon.png", author: { name: "CJ_Clippy", url: "https://futureporn.net" }, items: data.vods.map(vod => ({ content_html: "", url: `https://futureporn.net/vods/${vod.id}`, title: vod.title, summary: vod.notes || vod.title, image: vod.thumbnail, date_modified: vod.updated })) }; %><%- JSON.stringify(feed, null, 2) %>