Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopkini committed Mar 21, 2024
1 parent 1381390 commit c3d0174
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
38 changes: 38 additions & 0 deletions _includes/post-nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!-- post navigation -->
<style>
.post-nav-button {
border: 1px solid #333;
box-sizing: border-box;
padding:5px;
border-radius: 2px;
border-bottom: 5px solid #333;
max-width: 50%;
}

.post-nav-button.prev{
float:left;
border-right: 5px solid #333;
text-align: left;
}

.post-nav-button.next{
float: right;
border-left: 5px solid #333;
text-align: right;
}
@media screen and (max-width: 600px) {
.post-nav-button {
max-width: 100%;
width: 100%;
margin:2px;
border:1px solid #333;
}
}
</style>
{% if page.previous %}
<span class="post-nav-button prev">&lharu;<span class="desc">Previous:</span> <a href="{{page.previous.url}}">{{page.previous.title}}</a></span>
{% endif %}
{% if page.next %}
<span class="post-nav-button next"><span class="desc">Next:</span> <a href="{{page.next.url}}">{{page.next.title}}</a>&rharu;</span>
{% endif %}
<!-- end post navigation -->
9 changes: 1 addition & 8 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
{{ content }}
</div>

<!-- post navigation -->
{% if page.previous %}
<span style="float:left;border:1px solid #333; padding:5px;border-radius: 2px;margin-bottom: 5px;">&lharu; Previous: <a href="{{page.previous.url}}">{{page.previous.title}}</a></span>
{% endif %}
{% if page.next %}
<span style="float:right;border:1px solid #333; padding:5px;border-radius: 2px;">Next: <a href="{{page.next.url}}">{{page.next.title}}</a>&rharu;</span>
{% endif %}
<!-- end post navigation -->
{% include post-nav.html %}

{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
Expand Down

0 comments on commit c3d0174

Please sign in to comment.