# buildFuture but hide post

**URL:** <https://discourse.gohugo.io/t/buildfuture-but-hide-post/23461>\
**Category:** support\
**Created:** [February 15, 2020, 1:11am UTC](https://discourse.gohugo.io/t/buildfuture-but-hide-post/23461 "2020-02-15T01:11:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kewek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kewek/32/10614_2.png) [@kewek](https://discourse.gohugo.io/u/kewek)\
**Post date:** [February 15, 2020, 1:11am UTC](https://discourse.gohugo.io/t/buildfuture-but-hide-post/23461/1 "2020-02-15T01:11:46Z")

</div>

I’m running a blog [here](https://github.com/kewbish/blog), and have an ‘all posts’ page where I’m using the following code

```auto
{{ range (where .Site.Pages "Params.series" "post").Reverse }}
                <h1><a href="{{ .Permalink }}/index.html">{{ .Title }}</a></h1>
                <p>{{ .Description }}</p>
{{ end }}

```

to generate a list of posts.  
If I use `hugo` with buildFuture enabled, any posts with a future date will be published, and I can access them even before the publishDate.  
Is there any way I can hide the posts from the list until the publishDate? This would greatly simplify my deployment - I’d only have to push once and not have to worry about remembering to push to GitHub on a specific date.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [February 15, 2020, 2:46am UTC](https://discourse.gohugo.io/t/buildfuture-but-hide-post/23461/2 "2020-02-15T02:46:21Z")

</div>

You can add an additional where to filter the dates:

```auto
{{ range where (where ...) ".Date" "le" now }}

```

> [@kewek](#):
>
> I’d only have to push once and not have to worry about remembering to push to GitHub on a specific date.

Note though that future posts published (future relative to build date) will still be excluded from the list even after that date has passed, unless a new build is generated.

---

<div class="post-metadata">

**Author:** ![kewek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kewek/32/10614_2.png) [@kewek](https://discourse.gohugo.io/u/kewek)\
**Post date:** [February 15, 2020, 3:07am UTC](https://discourse.gohugo.io/t/buildfuture-but-hide-post/23461/3 "2020-02-15T03:07:49Z")

</div>

Thanks, that’s a great way to do it!
