spaCy/website/feed.xml.jade

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-03-31 17:24:48 +03:00
include _includes/_mixins
//- ----------------------------------------------------------------------------
//- Blog Feed
//- ----------------------------------------------------------------------------
doctype xml
rss(version='2.0', xmlns:atom='http://www.w3.org/2005/Atom')
channel
title= title
link= url
description= description
atom:link(href='#{ url }/feed.xml', rel='self', type='application/rss+xml')
for post, slug in public.blog._data
2016-09-30 21:29:03 +03:00
if post.published != false && slug != 'index'
2016-03-31 17:24:48 +03:00
item
2016-09-30 21:29:03 +03:00
title=post.title
description
| <![CDATA[
if post.image
p: img(src=url + '/blog/img/' + post.image.file)
2016-03-31 17:24:48 +03:00
2016-09-30 21:29:03 +03:00
!=partial('blog/' + slug)
| ]]>
2016-03-31 17:24:48 +03:00
2016-09-30 21:29:03 +03:00
if post.date
pubDate=convertPubDate(post.date)
2016-03-31 17:24:48 +03:00
2016-09-30 21:29:03 +03:00
link #{ url }/blog/#{ slug }
guid(isPermaLink='true') #{ url }/blog/#{ slug }