Skip to content

Commit

Permalink
Provide a way to set RSS URL
Browse files Browse the repository at this point in the history
  • Loading branch information
marvil07-adapt committed Dec 4, 2023
1 parent 66be741 commit 8102cb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/contributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ config:
html:
rss_link: true
url: 'https://example.org/contributions.html'
rss:
url: 'https://example.org/rss.xml'
1 change: 1 addition & 0 deletions templates/contributions.rss.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{% for contribution in contributions %}
<item>
<title>{{ contribution.title }}</title>
<link>{{ config.rss.url }}</link>
<pubDate>{{ contribution.start|date('r') }}</pubDate>
<guid isPermaLink="false">tag:{{ organization.domain }},{{ contribution.start|date('Y-m-d') }}:{{ contribution.title|url_encode }}</guid>
<dc:creator>{{ people[contribution.who] }}</dc:creator>
Expand Down

0 comments on commit 8102cb2

Please sign in to comment.