Skip to content

Commit

Permalink
Strip formatting from summary/description
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyi committed Dec 1, 2016
1 parent bd6f729 commit dbc38e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
{% if post.description %}
{{ post.description }}
{% elif post.excerpt %}
{{ post.excerpt }}
{{ post.excerpt | striptags }}
{% elif post.content %}
{{ post.content.substring(0, 140) }}
{{ post.content | striptags | truncate(140) }}
{% endif %}
</summary>
{% for category in post.categories.toArray() %}
Expand Down
4 changes: 2 additions & 2 deletions rss2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
{% if post.description %}
{{ post.description }}
{% elif post.excerpt %}
{{ post.excerpt }}
{{ post.excerpt | striptags }}
{% elif post.content %}
{{ post.content.substring(0, 140) }}
{{ post.content | striptags | truncate(140) }}
{% endif %}
</description>
{% if config.feed.content and post.content %}
Expand Down

0 comments on commit dbc38e0

Please sign in to comment.