Skip to content

Commit

Permalink
feat(feed): set subtitle if description was parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
ovlb committed Oct 22, 2022
1 parent 28efb9a commit ab4aa7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _src/_includes/layouts/feed.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ feed.meta.title }}</title>
{# <subtitle>{{ metadata.subtitle }}</subtitle> #}
{% if feed.meta.description %}
<subtitle>{{ feed.meta.description }}</subtitle>
{% endif %}
<link href="{{ permalink | absoluteUrl(site.baseURL) }}" rel="self" />
<link href="{{ feed.parserInfo.url }}" rel="alternate" />
<icon>{{ feed.meta.icon.parsedIcon | absoluteUrl(site.baseURL) }}</icon>
Expand Down

0 comments on commit ab4aa7b

Please sign in to comment.