From bbfbda756263071fa9559e7cb4d7fa730cf07616 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 27 Nov 2020 22:27:29 +0800 Subject: [PATCH] Fix tag and of feed.xml --- feed.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/feed.xml b/feed.xml index 0d88b56..c329f8a 100644 --- a/feed.xml +++ b/feed.xml @@ -30,8 +30,8 @@ layout: compress {{ post.title }} {{ post.date | date_to_xmlschema }} - {% if post.lastmod %} - {{ post.lastmod | date_to_xmlschema }} + {% if post.last_modified_at %} + {{ post.last_modified_at | date_to_xmlschema }} {% else %} {{ post.date | date_to_xmlschema }} {% endif %} @@ -51,9 +51,9 @@ layout: compress {{ post.summary | strip }} {% else %} - {% assign content = post.content %} - {% include no-linenos.html %} - {{ content | strip_html | truncate: 200 }} + {% include no-linenos.html content=post.content %} + {{ content | strip_html | truncate: 400 }} + {% endif %}