1. Styled pagination for blog index

2. Fixed Newer pagination link on page 2
3. Improved sidebar section breakdown on collapse
4. Removed sharing links from the blog index page (moved to pages)
5. Improved styling for metadata on the blog index
6. Moved /blog/archives.html to /blog/archives/index.html
7. Improved responsive layout styling bugs
This commit is contained in:
Brandon Mathis
2011-07-13 22:23:19 -04:00
parent b0921c1e27
commit 87f300b2bc
12 changed files with 62 additions and 45 deletions

View File

@ -5,20 +5,17 @@
{% else %}
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %}
{% unless page.no_meta or !index %}<p class="meta">{% include post_date.html %}</p>{% endunless %}
{% unless page.no_meta %}
<p class="meta">{% include post_date.html %}</p>
{% endunless %}
</header>
{% if index %}
{% endif %}
{% endunless %}
{% if index %}
<div class="entry-content">{{ content | exerpt | smart_quotes }}</div>
<p><a rel="full-article" href="{{ post.url }}">Read on &rarr;</a></p>
<footer>
<p class="meta">
{% include post_author.html %}
{% include post_date.html %}
{% include post_categories.html %}
<span class="comments"><a rel="comments" href="{{ post.url }}#disqus_thread">Comments</a></span>
{% include sharing.html %}
</p>
<a rel="full-article" href="{{ post.url }}">Read on &rarr;</a>
</footer>
{% else %}
<div class="entry-content">{{ content | smart_quotes }}</div>

View File

@ -12,5 +12,5 @@
</form>
<ul role="main-nav">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives.html">Archives</a></li>
<li><a href="/blog/archives/index.html">Archives</a></li>
</ul>

View File

@ -1,6 +1,6 @@
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
{% unless category == '0' %}
<span class="categories"> in
<span class="categories">
{% if post %}
{{ post.categories | category_links }}
{% else %}

View File

@ -11,13 +11,17 @@ blog_index: true
</article>
{% endfor %}
<nav role="pagination">
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}/">&larr; Older</a>
{% endif %}
<a href="/blog/archive.html">Blog Archive</a>
{% if paginator.previous_page %}
<a href="/page{{paginator.previous_page}}/">Newer &rarr;</a>
{% endif %}
<div>
{% if paginator.next_page %}
<a class="prev" href="/page{{paginator.next_page}}/">&larr; Older</a>
{% endif %}
<a href="/blog/archives/index.html">Blog Archives</a>
{% if paginator.previous_page and paginator.previous_page > 1 %}
<a class="next" href="/page{{paginator.previous_page}}/">Newer &rarr;</a>
{% elsif paginator.previous_page %}
<a class="next" href="/">Newer &rarr;</a>
{% endif %}
</div>
</nav>
{% if site.disqus_short_name %}
<script type="text/javascript">

View File

@ -9,7 +9,7 @@ function getNav(){
});
}
function addSidebarToggler() {
$('#content').prepend('<a href="#" class="toggle-sidebar">&raquo;</a>');
$('#content').append('<a href="#" class="toggle-sidebar">&raquo;</a>');
$('.toggle-sidebar').bind('click', function(e){
e.preventDefault();
if($('body').hasClass('collapse-sidebar')){