Skip to content

Commit

Permalink
Merge pull request #13 from mrmrs/home-link-hilite
Browse files Browse the repository at this point in the history
Fix home link not having a class of active on home page.
  • Loading branch information
mdo committed Jan 18, 2014
2 parents 7f4fe3a + be65286 commit 659c2d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">

<title>
{% if page.title %}
{{ page.title }} &middot; {{ site.title }}
{% else %}
{% if page.title == "Home" %}
{{ site.title }} &middot; {{ site.tagline }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
</title>

Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
title: Home
---

<div class="posts">
Expand Down Expand Up @@ -33,4 +34,5 @@ <h1 class="post-title">
{% else %}
<span class="pagination-item newer">Newer</span>
{% endif %}
</div>
</div>

0 comments on commit 659c2d0

Please sign in to comment.