mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-21 11:10:53 +00:00
Fix tag <updated> and <summary> of feed.xml
This commit is contained in:
parent
a33b2d78b0
commit
bbfbda7562
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…
x
Reference in New Issue
Block a user