This commit is contained in:
sakrecoer 2020-07-06 15:15:31 +02:00
parent eb08025c59
commit 98e15fd84a
9 changed files with 143 additions and 119 deletions

View file

@ -18,15 +18,13 @@ layout: nil
{% for post in site.posts limit:feed_items %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% if post.team_member %}
{% assign author_id = post.team_member | prepend: "/team_members/" | append: "/" %}
{% assign author = site.team_members | where: "url", author_id | first %}
<dc:creator>{{ author.name | xml_escape }}</dc:creator>
{% endif %}
<dc:creator>{{ site.author.name | xml_escape }}</dc:creator>
{% if post.description %}
<description>{{ post.description| xml_escape }}</description>
{% else %}
<description>{{ post.content | xml_escape }}</description>
<description>{{ post.content | truncatewords: 20 | xml_escape }}</description>
{% endif %}
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>