rss feed added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-15 21:24:45 +01:00
parent e4eab97a8f
commit 83129009ec
3 changed files with 34 additions and 13 deletions

View File

@@ -26,6 +26,9 @@
<author>{!! \Spatie\Feed\Helpers\Cdata::out($item->authorName.(empty($item->authorEmail)?'':' <'.$item->authorEmail.'>')) !!}</author>
<guid isPermaLink="true">{{ url($item->id) }}</guid>
<pubDate>{{ $item->timestamp() }}</pubDate>
<content:encoded>
{!! $item->content !!}
</content:encoded>
@if($item->__isset('enclosure'))
<enclosure url="{{ url($item->enclosure) }}" length="{{ url($item->enclosureLength) }}" type="{{ $item->enclosureType }}"/>
<media:content url="{{ url($item->enclosure) }}" medium="image" type="{{ $item->enclosureType }}"/>