✨ feat(atom): add full_content_in_feed
option (#164)
This commit is contained in:
parent
049babbd97
commit
a113ba2271
@ -147,6 +147,10 @@ menu = [
|
||||
# The RSS icon will be shown if (1) it's enabled and (2) the following variable is set to true.
|
||||
feed_icon = true
|
||||
|
||||
# Show the full post content in the Atom feed.
|
||||
# If it's set to false, only the description or summary will be shown.
|
||||
full_content_in_feed = false
|
||||
|
||||
# Email address for footer's social section.
|
||||
# Protect against spambots:
|
||||
# 1. Use base64 for email (convert at https://www.base64encode.org/ or `printf 'your@email.com' | base64`).
|
||||
|
@ -61,7 +61,9 @@
|
||||
</author>
|
||||
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
|
||||
<id>{{ page.permalink | safe }}</id>
|
||||
{% if page.summary -%}
|
||||
{% if config.extra.full_content_in_feed %}
|
||||
<content type="html">{{ page.content | safe }}</content>
|
||||
{% elif page.summary -%}
|
||||
<summary type="html">{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…</summary>
|
||||
{% elif page.description -%}
|
||||
<summary type="html">{{ page.description | striptags | safe }}</summary>
|
||||
|
@ -130,6 +130,10 @@ menu = [
|
||||
# The RSS icon will be shown if (1) it's enabled and (2) the following variable is set to true.
|
||||
feed_icon = true
|
||||
|
||||
# Show the full post content in the Atom feed.
|
||||
# If it's set to false, only the description or summary will be shown.
|
||||
full_content_in_feed = false
|
||||
|
||||
# Email address for footer's social section.
|
||||
# Protect against spambots:
|
||||
# 1. Use base64 for email (convert at https://www.base64encode.org/ or `printf 'your@email.com' | base64`).
|
||||
|
Loading…
x
Reference in New Issue
Block a user