Skip to content

Commit

Permalink
feat: feed categories
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Apr 19, 2024
1 parent ff4d64d commit 37f7584
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/feed/code.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ eleventyExcludeFromCollections: true
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | simplifyCodeHighlightingForRSS | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
{%- if post.data.tags %}
{% for tag in post.data.tags %}
<category>{{tag}}</category>
{% endfor %}
{%- endif %}
</entry>
{%- endfor %}
</feed>
5 changes: 5 additions & 0 deletions src/feed/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ eleventyExcludeFromCollections: true
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | simplifyCodeHighlightingForRSS | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
{%- if post.data.tags %}
{% for tag in post.data.tags %}
<category>{{tag}}</category>
{% endfor %}
{%- endif %}
</entry>
{%- endfor %}
</feed>
5 changes: 5 additions & 0 deletions src/feed/run.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ eleventyExcludeFromCollections: true
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | simplifyCodeHighlightingForRSS | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
{%- if post.data.tags %}
{% for tag in post.data.tags %}
<category>{{tag}}</category>
{% endfor %}
{%- endif %}
</entry>
{%- endfor %}
</feed>

0 comments on commit 37f7584

Please sign in to comment.