Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Kirbytext in copyright field not parsed #3

Open
fabianmichael opened this issue May 2, 2019 · 1 comment
Open

Kirbytext in copyright field not parsed #3

fabianmichael opened this issue May 2, 2019 · 1 comment

Comments

@fabianmichael
Copy link

The feeds plugin automatically adds a <copyright> and <dc:rights> tag to the generated feeds by using the $site’s copyright field. Many of us use this field to automatically update the year next to it by using the (date: year) KirbyTag. However, as the feeds plugin does not process the field’s value as Kirbytext, the raw KirbyTags will be inserted into the feed’s output.

Please consider to treat that field’s value as Kirbytext and stripping the tags to keep the output XML-compatible:

strip_tags(kirby()->site()->content()->get( 'copyright' )->kirbytext())
@omz13
Copy link
Owner

omz13 commented May 2, 2019

@fabianmichael Good catch; will fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants