redesign seo/social media sharing parameters
This commit is contained in:
parent
71a59841a0
commit
6a1b3cb343
6 changed files with 98 additions and 100 deletions
7
feed.xml
7
feed.xml
|
@ -7,17 +7,18 @@ layout: null
|
|||
{% if site.title %}
|
||||
<title>{{ site.title | xml_escape }}</title>
|
||||
{% endif %}
|
||||
{% if site.description %}
|
||||
<description>{{ site.description | xml_escape }}</description>
|
||||
{% if site.rss-description %}
|
||||
<description>{{ site.rss-description | xml_escape }}</description>
|
||||
{% endif %}
|
||||
<link>{{ '' | absolute_url }}</link>
|
||||
<atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
|
||||
{% assign excerpt_length = site.excerpt_length | default: 50 %}
|
||||
{% for post in site.posts limit:20 %}
|
||||
<item>
|
||||
<title>{{ post.title | xml_escape }}</title>
|
||||
<description>
|
||||
{% if post.subtitle %}{{ post.subtitle | xml_escape }} - {% endif %}
|
||||
{{ post.content | strip_html | xml_escape | truncatewords: 50 }}
|
||||
{{ post.content | strip_html | xml_escape | truncatewords: excerpt_length }}
|
||||
</description>
|
||||
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
|
||||
<link>{{ post.url | absolute_url }}</link>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue