Skip to content

Commit 5654f82

Browse files
committed
fix pinned posts (tech)
1 parent 3dc823b commit 5654f82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

_pages/tech.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ permalink: /tech/
2828
</article>
2929
{% endfor %}
3030

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

0 commit comments

Comments
 (0)