Skip to content

Commit 3dc823b

Browse files
committed
fix pinned posts (books)
1 parent 6bf691c commit 3dc823b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_pages/books.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ permalink: /books/
2929
{% endfor %}
3030

3131
<!-- Regular book posts (excluding pinned ones) -->
32-
{% assign regular_book_posts = site.posts | where: "pinned", nil | where_exp: "post", "post.tags contains 'books'" %}
33-
{% for post in regular_book_posts %}
32+
{% for post in site.posts %}
33+
{% if post.tags contains 'books' and post.pinned != true %}
3434
<article>
3535
<small>
3636
Published: {{ post.date | date_to_string }}
@@ -48,5 +48,6 @@ permalink: /books/
4848
</div>
4949
{% endif %}
5050
</article>
51-
{% endfor %}
51+
{% endif %}
52+
{% endfor %}
5253
</div>

0 commit comments

Comments
 (0)