Skip to content

Commit

Permalink
Fixed pagination to page1 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoble committed Apr 3, 2011
1 parent b4fee84 commit bed4cfe
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 7 deletions.
5 changes: 4 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ <h1>
{% if paginator.next_page %}
<li id="previous"><a href="/page{{ paginator.next_page }}">&laquo; Previous</a></li>
{% endif %}
{% if paginator.previous_page %}

{% if paginator.previous_page > 1 %}
<li id="next"><a href="/page{{ paginator.previous_page }}">Next &raquo;</a></li>
{% elsif paginator.previous_page == 1 %}
<li id="next"><a href="/">Next &raquo;</a></li>
{% endif %}
</ul>
</div>
Expand Down
1 change: 1 addition & 0 deletions _site/2011/01/18/new-year-new-site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ <h3>Comments</h3>
<ul id="article-nav">



</ul>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ <h3>Just the Surface</h3>
<ul id="article-nav">



</ul>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ <h3>Wrap Up</h3>
<ul id="article-nav">



</ul>
</div>

Expand Down
1 change: 1 addition & 0 deletions _site/2011/03/30/TADDD/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ <h3>Design</h3>
<ul id="article-nav">



</ul>
</div>

Expand Down
1 change: 1 addition & 0 deletions _site/2011/04/02/value-of-it-just-working/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h3>Rubygems</h3>
<ul id="article-nav">



</ul>
</div>

Expand Down
2 changes: 0 additions & 2 deletions _site/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
GEM
remote: http://rubygems.org/
specs:
aqueduct (0.0.1)
classifier (1.3.3)
fast-stemmer (>= 1.0.0)
directory_watcher (1.3.2)
Expand All @@ -24,5 +23,4 @@ PLATFORMS
ruby

DEPENDENCIES
aqueduct
rack-jekyll
1 change: 1 addition & 0 deletions _site/archive/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ <h1>
<ul id="article-nav">



</ul>
</div>

Expand Down
2 changes: 1 addition & 1 deletion _site/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>Matte Noble</title>
<link href="http://mattenoble.com/atom.xml" rel="self"/>
<link href="http://mattenoble.com/"/>
<updated>2011-04-02T13:59:02-04:00</updated>
<updated>2011-04-03T09:40:14-04:00</updated>
<id>http://mattenoble.com/</id>
<author>
<name>Matte Noble</name>
Expand Down
1 change: 1 addition & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ <h3>Wrap Up</h3>
<li id="previous"><a href="/page2">&laquo; Previous</a></li>



</ul>
</div>

Expand Down
3 changes: 2 additions & 1 deletion _site/page2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ <h3>Comments</h3>
<ul id="article-nav">


<li id="next"><a href="/page1">Next &raquo;</a></li>

<li id="next"><a href="/">Next &raquo;</a></li>

</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _site/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

<url>
<loc>http://mattenoble.com/</loc>
<lastmod>2011-04-02</lastmod>
<lastmod>2011-04-03</lastmod>
</url>
<url>
<loc>http://mattenoble.com/archive/</loc>
<lastmod>2011-04-02</lastmod>
<lastmod>2011-04-03</lastmod>
</url>
</urlset>

0 comments on commit bed4cfe

Please sign in to comment.