Skip to content

Commit

Permalink
[FEATURE] Include comment link and authors in rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Mar 19, 2020
1 parent 48f83e9 commit 2e1c159
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Layouts/Default.rss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>{feed.title}</title>
<description>{feed.description}</description>
Expand Down
14 changes: 13 additions & 1 deletion Resources/Private/Partials/List/Post.rss
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<f:spaceless>
<item>
<title>{post.title}</title>
<description><f:if condition="{post.abstract}"><f:then>{post.abstract}</f:then><f:else>{post.description}</f:else></f:if></description>
<link><blogvh:link.post post="{post}" returnUri="true" createAbsoluteUri="true" /></link>
<f:if condition="{settings.comments.active} && {post.commentsActive}">
<comments><blogvh:link.post post="{post}" section="comments" returnUri="true" createAbsoluteUri="true" /></comments>
</f:if>
<pubDate><f:format.date date="{post.publishDate}" format="r" /></pubDate>
<f:if condition="{post.authors}">
<f:for each="{post.authors}" as="author">
<dc:creator>{author.name}</dc:creator>
</f:for>
</f:if>
<guid><blogvh:link.post post="{post}" returnUri="true" createAbsoluteUri="true" /></guid>
<description><f:if condition="{post.abstract}"><f:then>{post.abstract}</f:then><f:else>{post.description}</f:else></f:if></description>
</item>
</f:spaceless>
</html>

0 comments on commit 2e1c159

Please sign in to comment.