Created
May 26, 2014 23:51
-
-
Save remainstheday/3ff12b80fcb4c661dc35 to your computer and use it in GitHub Desktop.
prismic with meanjs.org stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-md-7"> | |
<% for(var i=0; i<posts.results.length; i++) { %> | |
<div class="blog-post"> | |
<div class="row"> | |
<div class="col-md-1" > | |
<div class="date"> <%= posts.results[i].getDate("blog.date") %></div> | |
<li> <img src="../../img/icons/facebook.png" alt="" class="blog-icon"></li> | |
<li><img src="../../img/icons/twitter.png" alt="" class="blog-icon"></li> | |
<li> <img src="../../img/icons/linkedin.png" alt="" class="blog-icon"></li> | |
<li><img src="../../img/icons/g+.png" alt="" class="blog-icon"></li> | |
</div> | |
<div class="col-md-11"> | |
<h2><%= posts.results[i].getStructuredText("blog.body").getTitle.text %></h2> | |
<a class="byline"><%= posts.results[i].getText("blog.author") %></a> | |
<p> <%= posts.results[i].getStructuredText("blog.body").getFirstParagraph().text %> </p> | |
<a href="<%= ctx.linkResolver(ctx, posts.results[i]) %>">read more</a> | |
</div> | |
</div> | |
</div> | |
<% } %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment