/
post._
31 lines (22 loc) · 1006 Bytes
/
post._
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
<article id="post<%= id.replace(/\//g, "-") %>" class="post post<%= id.replace(/\//g, "-") %>">
<h2 class="title"><a href="{{ site.url }}<%= url %>"><%= title %></a></h2>
<div class="post-meta">
<span class="entry-date">Posted on <%= moment(date).format("MMMM D, YYYY") %></span>
<span class="entry-author">by <%= author %></span>
</div>
<div class="entrybody">
<%= content %>
</div>
<div class="related">
<h4>Related Posts:</h4>
<ol class="related-posts">
<% _.each( related_posts.slice(0,5), function( post) { %>
<li><a href="<%= application.url + post.url %>"><%= post.title %></a></li>
<% }) %>
</ol>
</div>
<div class="post-taxonomies">
Posted in <a href="{{ site.url }}/categories/<%= category %>/"><%= category %></a> | Tagged <% _.each( tags, function(tag){ %> <a href="{{ site.url }}/tags/<%= tag.toLowerCase() %>/"><%= tag %></a>, <% }); %>
</div>
</article>
<div id="disqus_thread"></div>