Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Jade: RSS
doctype xml
rss(version="2.0", xmlns:atom="")
title= title
link= url
description= description
language= language
atom:link(href="#{ url }feed.xml", rel="self", type="application/rss+xml")
each post, slug in
if slug !== 'index'
title= post.title
description <![CDATA[!{ excerpt(partial('blog/' + slug)) }]]>
pubDate= new Date(
link #{ url }blog/#{ slug }.html
guid(isPermaLink="true") #{ url }blog/#{ slug }.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.