Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Feed plugin : twig template removing `</link>`

Solved by unefamilleavelo View solution

Started by unefamilleavelo 1 year ago · 6 replies · 87 views
1 year ago

Hi,

I have installed the "feed" pluging but generated rss feed is invalid. After analyzing, the twig template contains this code:

TWIG
<link>{{ page.url(true) }}</link>

The resulting output is missing the </link> string. It looks like some process is removing it. Any other string is fine, but </link> is automatically removed after some parsing. How can I fix this please ?

1 year ago

Try disabling other plugins and see if the issue is still there

1 year ago

Thanks, I have tried that, one by one, but none of the other plugins seems to impact this.

1 year ago

I would try to debug the "feed" plugin itself in such case. Or report the issue on plugins GitHub repo

1 year ago

Backlinking is always appreciated in such cases. On both sides

1 year ago Solution

I have started a brand new instance of Grav, added all plugings, set the parameters, copied all pages. Everything works fine. I still can't figure out what was wrong with the previous instance but I will close this thread.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 99 15 hours ago
General · by pamtbaau, 21 hours ago
1 63 20 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago