]> BookStack Code Mirror - hacks/blob - content/simple-page-rss-feed/rss.blade.php
Add LaTeX/MathJax hack
[hacks] / content / simple-page-rss-feed / rss.blade.php
1 <?xml version="1.0"?>
2 <rss version="2.0">
3    <channel>
4       <title>Latest BookStack Pages</title>
5       <link>{{ url('/') }}</link>
6       <description>Latest pages in our BookStack instance</description>
7       <lastBuildDate>{{ date(DATE_RSS) }}</lastBuildDate>
8       @foreach($pages as $page)
9         <item>
10             <title>{{ $page->name }}</title>
11             <link>{{ $page->getUrl() }}</link>
12             <description>{{ $page->getExcerpt() }}</description>
13             <pubDate>{{ $page->created_at->format(DATE_RSS) }}</pubDate>
14             <guid>page#{{ $page->id }}</guid>
15         </item>
16       @endforeach
17    </channel>
18 </rss>