Skip to content

Commit

Permalink
Merge pull request #573 from hpehl/older-posts-bottom-right
Browse files Browse the repository at this point in the history
Make the 'Older Posts' button stick to the bottom right
  • Loading branch information
bstansberry committed Mar 19, 2024
2 parents d477ef2 + 6f7230c commit 5025d39
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _layouts/news.html
Expand Up @@ -9,7 +9,7 @@ <h1 class="title">Wild<strong>Fly</strong> Project News</h1>
<div class="grid__item width-2-12 rss-btn">
<a href="{{site.baseurl}}/feed.xml"><i class="fas fa-rss-square"></i></a>
</div>


<div class="grid__item width-10-12 width-12-12-m">
{% for post in paginator.posts %}
Expand Down Expand Up @@ -37,9 +37,10 @@ <h2><a href="{% if post.link %}{{ post.link }}{% else %}{{site.baseurl}}{{ post.
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="paginator-btns">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="button-cta secondary">Newer Posts</a>
{% endif %}
{%- capture visibility -%}
{%- if paginator.previous_page -%}visible{%- else -%}hidden{%- endif -%}
{%- endcapture -%}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="button-cta secondary" style="visibility: {{visibility}}">Newer Posts</a>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="button-cta secondary">Older Posts</a>
{% endif %}
Expand Down

0 comments on commit 5025d39

Please sign in to comment.