fix blog feed
This commit is contained in:
@@ -119,8 +119,7 @@ module Render = struct
|
||||
|
||||
let render_blog_index (_ : Dream.request) =
|
||||
let buff = Buffer.create 512 in
|
||||
let () = Buffer.add_string buff "<h3>Blog</h3>" in
|
||||
let () = Buffer.add_string buff "\r\nI have an <a href=\"/blog/rss.xml\">rss feed</a> too." in
|
||||
let () = Buffer.add_string buff "<h3>Blog</h3> I have an <a href=\"/blog/rss.xml\">rss feed</a> too." in
|
||||
let posts_t = Database.get_all_blog_posts () in
|
||||
posts_t >>= function
|
||||
| Error e -> handle_error e
|
||||
|
||||
Reference in New Issue
Block a user