S1SYPHOS / kirby-lingonberry

A Kirby port of the Wordpress theme 'Lingonberry'
https://twobrain.io/lingonberry
GNU General Public License v2.0
6 stars 2 forks source link

RSS-Feed does not Include Intro - fix inside #16

Closed demlak closed 6 years ago

demlak commented 6 years ago

Currently, the rss-feed does only include the text field. In most cases, this will split the intention of a blog post on the rss feed.

To include Intro field on demand, in site/plugin/feeds/template.php change the following line:

<description><![CDATA[<?php echo $item->{$textfield}()->kirbytext() ?>]]></description>

to

<description><![CDATA[<?php if($item->intro()): ?><?php echo $item->intro()->kirbytext() ?><?php endif ?><?php echo $item->{$textfield}()->kirbytext() ?>]]></description>

19

S1SYPHOS commented 6 years ago

Fixed.