| @@ -1,12 +1,29 @@ | ||
| --- | ||
| layout: default | ||
| --- | ||
|
|
||
| <div class="home"> | ||
|
|
||
| <h1 class="page-heading">Posts</h1> | ||
|
|
||
| <div class="grid"> | ||
| <div class="grid-sizer"></div> | ||
|
|
||
| {% for post in site.posts %} | ||
|
|
||
| <div class="grid-item"> | ||
| <img src="http://placehold.it/800x600"> | ||
| <!-- <a class="overlay overlaypost-link" href="{{ post.url | prepend: site.baseurl }}"> | ||
| <h2 class="title">{{ post.title }}</h2> | ||
| <div class="description"> | ||
| <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> | ||
| </div> | ||
| </a> --> | ||
| </div> | ||
|
|
||
| {% endfor %} | ||
| </div> | ||
|
|
||
| <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p> | ||
|
|
||
| </div> |
| @@ -0,0 +1,9 @@ | ||
| $(window).load( function() { | ||
|
|
||
| $('.grid').masonry({ | ||
| "itemSelector": ".grid-item", | ||
| "columnWidth": ".grid-sizer", | ||
| "percentPosition": true, | ||
| }); | ||
|
|
||
| }); |