Skip to content

Commit

Permalink
Fix internal reference offset on pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
crayxt committed Apr 15, 2014
1 parent 64492c2 commit 033c3af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/themes/twitter-2.0/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ html, body {
border:1px solid #4C964D;
color:#FFF;
}
.anchor {
position: absolute;
margin: -3.4em
}
3 changes: 2 additions & 1 deletion categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@


{% for category in site.categories %}
<h3 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h3>
<div class="anchor" id="{{ category[0] }}-ref"></div>
<h3>{{ category[0] | join: "/" }}</h3>
<ul>
{% assign pages_list = category[1] %}
{% include JB/pages_list %}
Expand Down
3 changes: 2 additions & 1 deletion tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@


{% for tag in site.tags %}
<h3 id="{{ tag[0] }}-ref">{{ tag[0] }}</h3>
<div class="anchor" id="{{ tag[0] }}-ref"></div>
<h3>{{ tag[0] }}</h3>
<ul>
{% assign pages_list = tag[1] %}
{% include JB/pages_list %}
Expand Down

0 comments on commit 033c3af

Please sign in to comment.