mirror of https://github.com/4xmen/xshop.git
added rss feed to project
parent
9d2c7a1dae
commit
6e478ce10f
@ -0,0 +1,19 @@
|
|||||||
|
<rss version="2.0">
|
||||||
|
<channel>
|
||||||
|
<title>{{config('app.name')}}</title>
|
||||||
|
<link>{{ url('/') }}</link>
|
||||||
|
<description>{{getSetting('description')}}</description>
|
||||||
|
<language>{{config('app.locale')}}</language>
|
||||||
|
<pubDate>{{ \Carbon\Carbon::now()->toRssString() }}</pubDate>
|
||||||
|
|
||||||
|
@foreach($posts as $post)
|
||||||
|
<item>
|
||||||
|
<title><![CDATA[{{ $post->title }}]]></title>
|
||||||
|
<link>{{ $post->webUrl() }}</link>
|
||||||
|
<description><![CDATA[{{ $post->subtitle }}]]></description>
|
||||||
|
<pubDate>{{ $post->created_at->toRssString() }}</pubDate>
|
||||||
|
<guid>{{ $post->webUrl() }}</guid>
|
||||||
|
</item>
|
||||||
|
@endforeach
|
||||||
|
</channel>
|
||||||
|
</rss>
|
@ -0,0 +1,19 @@
|
|||||||
|
<rss version="2.0">
|
||||||
|
<channel>
|
||||||
|
<title>{{config('app.name')}}</title>
|
||||||
|
<link>{{ url('/') }}</link>
|
||||||
|
<description>{{getSetting('description')}}</description>
|
||||||
|
<language>{{config('app.locale')}}</language>
|
||||||
|
<pubDate>{{ \Carbon\Carbon::now()->toRssString() }}</pubDate>
|
||||||
|
|
||||||
|
@foreach($products as $product)
|
||||||
|
<item>
|
||||||
|
<title><![CDATA[{{ $product->name }}]]></title>
|
||||||
|
<link>{{ $product->webUrl() }}</link>
|
||||||
|
<description><![CDATA[{{ $product->excerpt }}]]></description>
|
||||||
|
<pubDate>{{ $product->created_at->toRssString() }}</pubDate>
|
||||||
|
<guid>{{ $product->webUrl() }}</guid>
|
||||||
|
</item>
|
||||||
|
@endforeach
|
||||||
|
</channel>
|
||||||
|
</rss>
|
Loading…
Reference in New Issue