# Exclude posts from site.posts

**URL:** <https://talk.jekyllrb.com/t/exclude-posts-from-site-posts/7298>\
**Category:** Help\
**Created:** [April 30, 2022, 12:53am UTC](https://talk.jekyllrb.com/t/exclude-posts-from-site-posts/7298 "2022-04-30T00:53:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [May 3, 2022, 7:27pm UTC](https://talk.jekyllrb.com/t/exclude-posts-from-site-posts/7298/2 "2022-05-03T19:27:41Z")

</div>

There was a recent conversation on this where I answer a similar question. Check out the following solution and if it is not where you need to be, let us know.

> [@How to use variable in a jekyll liquid loop?](https://talk.jekyllrb.com/t/how-to-use-variable-in-a-jekyll-liquid-loop/7279):
>
> For example, {% assign tech = technology %} now I made some post with the category technology. Now I want to loop them like this \<ul\> {% for post in site.categories.tech %} \<li\> \<a\>{{post.title}}\</a\> \</li\> {% endfor %} \</ul\> If I do the same procedure but specify the category fully “technology” it works. But whenever I use the variable “tech” it doe…

---

_[View the full topic](https://talk.jekyllrb.com/t/exclude-posts-from-site-posts/7298)._
