Fix tag <updated> and <summary> of feed.xml
This commit is contained in:
parent
a33b2d78b0
commit
bbfbda7562
1 changed files with 5 additions and 5 deletions
10
feed.xml
10
feed.xml
|
@ -30,8 +30,8 @@ layout: compress
|
||||||
<title>{{ post.title }}</title>
|
<title>{{ post.title }}</title>
|
||||||
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}" />
|
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}" />
|
||||||
<published>{{ post.date | date_to_xmlschema }}</published>
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
||||||
{% if post.lastmod %}
|
{% if post.last_modified_at %}
|
||||||
<updated>{{ post.lastmod | date_to_xmlschema }}</updated>
|
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
|
||||||
{% else %}
|
{% else %}
|
||||||
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -51,9 +51,9 @@ layout: compress
|
||||||
<summary>{{ post.summary | strip }}</summary>
|
<summary>{{ post.summary | strip }}</summary>
|
||||||
{% else %}
|
{% else %}
|
||||||
<summary>
|
<summary>
|
||||||
{% assign content = post.content %}
|
{% include no-linenos.html content=post.content %}
|
||||||
{% include no-linenos.html %}
|
{{ content | strip_html | truncate: 400 }}
|
||||||
{{ content | strip_html | truncate: 200 }}</summary>
|
</summary>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</entry>
|
</entry>
|
||||||
|
|
Loading…
Reference in a new issue