Skip to content

Commit

Permalink
Use page.summary if available (#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
IcyDefiance authored Mar 15, 2023
1 parent badd6b7 commit 2acaeb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/templates/src/builtins/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
</author>
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
<id>{{ page.permalink | safe }}</id>
{% if page.summary %}
<summary type="html">{{ page.summary }}</summary>
{% else %}
<content type="html">{{ page.content }}</content>
{% endif %}
</entry>
{%- endfor %}
</feed>

0 comments on commit 2acaeb5

Please sign in to comment.