Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolstenhouse committed Sep 28, 2024
1 parent 6690ae1 commit dfc3f56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h1 class="font-serif">{{ page.title }}</h1>
{% assign sorted_posts = site.writing | sort: 'date' %} {% for post in
sorted_posts %} {% if post.url == page.url %} {% assign prevIndex =
forloop.index0 | minus: 1 %} {% assign nextIndex = forloop.index0 | plus:
1 %} {% break %} {% endif %} {% endfor %}
<div class="flex justify-between">
{% if prevIndex >= 0 %}
<a href="{{ sorted_posts[prevIndex].url | prepend: site.baseurl }}"
Expand Down

0 comments on commit dfc3f56

Please sign in to comment.