Skip to content

Commit e241011

Browse files
committed
Add two column view to blog entry
1 parent 704f050 commit e241011

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

views/entry.tt

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<% IF entry %>
2-
<div id="sidebar">
3-
<h1>Posted at</h1>
4-
<p><% entry.created_at | html_entity %></p>
5-
<h1>Summary</h1>
6-
<p><% entry.summary | html_entity %></p>
2+
<div class="row align-items-start">
3+
<div id="sidebar" class="col-md-2">
4+
<h4>Posted at</h4>
5+
<p><% entry.created_at | html_entity %></p>
6+
<h4>Summary</h4>
7+
<p><% entry.summary | html_entity %></p>
8+
</div>
9+
<div id="content" class="col-md-1">
10+
<h1><% entry.title | html_entity %></h1>
11+
<p><% entry.content | html_entity %></p>
12+
</div>
713
</div>
8-
<div id="content">
9-
<h2><% entry.title | html_entity %></h2>
10-
<p><% entry.content | html_entity %></p>
1114
<% ELSE %>
1215
<p>Invalid entry.</p>
1316
<% END %>
14-
</div>
1517

0 commit comments

Comments
 (0)