working index page

This commit is contained in:
Ryan Voots 2012-02-16 01:14:04 -05:00
parent 7a317c17c7
commit 22fee50a81
2 changed files with 70 additions and 11 deletions

70
index.html Normal file
View file

@ -0,0 +1,70 @@
---
layout: page
comments: false
---
{% include JB/setup %}
{% for post in site.posts %}
{% if forloop.first %}
<header>
<div class="unit-head">
<div class="unit-inner unit-head-inner">
<h1 class="h2 entry-title">{{ post.title }}</h1>
</div><!-- unit-inner -->
</div><!-- unit-head -->
</header>
<div class="bd">
<div class="entry-content">
{{ post.content }}
<div class="meta">
<p class="date-publish">
Published:
<date class="date-pub" title="{{ post.date | date_to_xmlschema }}" datetime="{{ post.date | date_to_xmlschema }}" pubdate>
<span class="month"><abbr>{{ post.date | date: '%B' }}</abbr></span>
<span class="day">{{ post.date | date: '%d' }}</span>
<span class="year">{{ post.date | date: '%Y' }}</span>
</date>
</p>
<ul class="list-category list-linear">
<li class="list-head">category: </li>
{% assign categories_list = post.categories %}
{% include JB/categories_list %}
</ul>
<ul class="list-tag list-linear">
<li class="list-head">tags: </li>
{% assign tags_list = post.tags %}
{% include JB/tags_list %}
</ul>
</div><!-- meta -->
</div><!-- entry-content -->
<div class="misc-content">
<div class="social">
<ul class="list-linear">
<li><div class="twitter-tweet"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="{{ site.author.twitter }}" data-lang="en">Tweet</a></div></li>
<li><div class="twitter-follow"><a href="https://twitter.com/{{ site.author.twitter }}" class="twitter-follow-button" data-show-count="false" data-lang="en"></a></div></li>
</ul>
</div>
</div><!-- misc-content -->
</div><!-- bd -->
<footer class="unit-foot">
<div class="unit-inner unit-foot-inner">
<nav class="pagination">
<ul>
{% if post.previous %}
<li class="prev"><a class="internal" rel="prev" href="{{ post.previous.url }}" title="View {{ post.previous.title }}">&laquo; {{ post.previous.title }}</a></li>
{% endif %}
{% if post.previous and post.next %}
<li class="pipe"> | </li>
{% endif %}
{% if post.next %}
<li class="next"><a class="internal" rel="next" href="{{ post.next.url }}" title="View {{ post.next.title }}">{{ post.next.title }} &raquo;</a></li>
{% endif %}
</ul>
</nav>
</div>
</footer>
{% endif %}
{% endfor %}

View file

@ -1,11 +0,0 @@
---
layout: page
---
{% include JB/setup %}
{% for post in site.posts %}
{% if forloop.first %}
{{ post.title }}
{% include themes/the-program/post.html %}
{% endif %}
{% endfor %}