-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathindex.html.ep
34 lines (26 loc) · 915 Bytes
/
index.html.ep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% layout 'default';
% title 'Phased Blog';
%= t ul => id => 'blogs' => begin
% for my $blog (@$blogs) {
%= t li => id => $blog->url_title, class => 'blog snippet' => begin
%= t a => name => 'id'.$blog->id
%= t a => name => $blog->url_title
%= t h2 => begin
%= link_to $blog->title => '/blogs/'.$blog->url_title, class => 'more'
% end
%= t div => class => 'tags' => begin
% for my $tag ($blog->tags) {
%= t span => class => 'tag' => $tag->name
% }
% end
% if ($blog->subtitle) {
%= t h3 => class => 'subtitle' => $blog->subtitle
% }
%= t h3 => class => 'time', title => $blog->time_since => $blog->created_time_string
%= t div => class => 'content snippet' => begin
%= $blog->snippet
%= link_to 'More' => '/blogs/'.$blog->url_title, class => 'more'
%= end
% end
% }
% end