Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
added next and prev buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 7, 2015
1 parent f02fd1f commit 3c1ddd2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion assets/css/uno.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/uno.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion assets/scss/components/_media-queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

/* disabling element, too much information*/
.pace,
.post.reading-time {
.post.reading-time,
.post.related {
display: none;
}
#search-container {
Expand Down
15 changes: 8 additions & 7 deletions assets/scss/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@
pre {
width: 95%;
}
hr {
display: block;
width: 30%;
margin: 2em 0;
border-top: 1px solid $gray-light;
}

> header {
text-align: center;
}
Expand Down Expand Up @@ -100,7 +95,13 @@
}
}
&.comments {
margin-top: 2rem;
padding: 2rem 0 0 0;
}

&.related {
display: flex;
justify-content: space-between;
padding: 4rem 0 2rem 0;
}
}

Expand Down
10 changes: 10 additions & 0 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
{{content}}
</div>

<div class="post related">
{{#prev_post}}
<a id="prev-btn" class="btn small square" href="{{url}}">← {{title}}</a>
{{/prev_post}}

{{#next_post}}
<a id="next-btn" class="btn small square" href="{{url}}">{{title}} →</a>
{{/next_post}}
</div>

{{> comments}}

</article>
Expand Down

0 comments on commit 3c1ddd2

Please # to comment.