seo
This commit is contained in:
parent
eb08025c59
commit
98e15fd84a
9 changed files with 143 additions and 119 deletions
10
feed.xml
10
feed.xml
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue