Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unpublished blog posts are still displayed on the front-end #2650

Closed
paulaime opened this issue Aug 24, 2019 · 2 comments
Closed

[Bug] Unpublished blog posts are still displayed on the front-end #2650

paulaime opened this issue Aug 24, 2019 · 2 comments
Assignees

Comments

@paulaime
Copy link

paulaime commented Aug 24, 2019

Since last Grav update (v1.7.0-beta.5), on one of my Grav websites that's using the Mediator theme (customized by me), all the unpublished blog posts are still displayed on the front-end.

The header of a blog post is as follows:

---
title: 'Title of the blog post'
media_order: background.jpg
published: false
image: background.jpg
---

And the header of the parent file (default.md) is as follows:

---
title: 'Title of the website'
external_links:
    process: true
    title: false
    no_follow: true
    target: _blank
    mode: active
sitemap:
    changefreq: monthly
    priority: 1.03
content:
    items: '@self.children'
    order:
        by: date
        dir: desc
    limit: 4
    pagination: true
feed:
    description: 'Sample blog description'
    limit: 10
pagination: true
cover: shore.jpg
---

But the blog posts are shown on the website even if they're set on published: false.

I talked with Ricardo on Discord, and was told to add filter: published: true in the content for the moment for a quick fix, but I wanted to post this bug here because it might be an issue with Grav.

@rhukster
Copy link
Member

Does sound like a bug. Are you running Grav 1.6?

@rhukster rhukster self-assigned this Aug 24, 2019
@rhukster rhukster added the bug label Aug 24, 2019
@paulaime
Copy link
Author

I'm running Grav 1.7.0-beta.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants