first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ config('app.name') }}</title>
|
||||
<link>{{ route('blog.index') }}</link>
|
||||
<atom:link href="{{ route('blog.feed') }}" rel="self" type="application/rss+xml" />
|
||||
<description>Latest articles from {{ config('app.name') }}.</description>
|
||||
<language>{{ str_replace('_', '-', app()->getLocale()) }}</language>
|
||||
@foreach ($posts as $post)
|
||||
<item>
|
||||
<title>{{ $post->title }}</title>
|
||||
<link>{{ route('blog.show', $post) }}</link>
|
||||
<guid isPermaLink="true">{{ route('blog.show', $post) }}</guid>
|
||||
<pubDate>{{ $post->published_at->toRfc2822String() }}</pubDate>
|
||||
<description>{{ $post->excerpt_or_summary }}</description>
|
||||
</item>
|
||||
@endforeach
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user