move views to views folder

This commit is contained in:
2022-10-12 17:04:26 -06:00
parent 07dd08698c
commit e13348c8ae
10 changed files with 39 additions and 11 deletions

17
views/blog_index.eml.ml Normal file
View File

@@ -0,0 +1,17 @@
let render ~posts =
let open Database in
<div>
<h3>Blog</h3>
I have an <a href="/blog/rss.xml">RSS feed</a> too.
<br>
</div>
% posts |> List.iter begin fun (post : Blog_post.t) ->
<div class="link-wrapper">
<a href="/blog/<%s post.slug %>">
<%s post.title %>
</a>
<i>
<%s post.date %>
</i>
</div>
% end;