Commit 6820ff46 by Bagus Pambudi

add image rss

parent 23703bec
......@@ -8,7 +8,7 @@ class RssFeedController extends Controller
{
$posts = Posts::where('post_status', 't')->
orderBy('created_at', 'desc')->
limit(50)->get();
limit(10)->get();
return response()->view('rss.feed', compact('posts'))->header('Content-Type', 'application/xml');
}
}
\ No newline at end of file
......@@ -9,6 +9,9 @@
<language>en</language>
<pubDate>{{ now() }}</pubDate>
@foreach($posts as $post)
<image>
<url>{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}</url>
</image>
<item>
<title>{{ $post->title }}</title>
<link>{{ url('post/'.$post['slug'])}}</link>
......
......@@ -23,6 +23,11 @@
}
ul.dropdown-menu{
}
div#navbar-collapse-1.navbar-collapse.collapse.navbar-right{
margin-left: 150px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment