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

Filter out future date for both post and project #6

Open
naimsolong opened this issue May 3, 2024 · 2 comments
Open

Filter out future date for both post and project #6

naimsolong opened this issue May 3, 2024 · 2 comments

Comments

@naimsolong
Copy link
Owner

Problem

File at pages/posts/index.vue and pages/projects/index.vue doesn't filter out future date.

const posts = await queryContent('xxxx').only(['id', 'title', 'description', 'image', 'draft', '_path']).where({ draft: false }).sort({ published: -1 }).limit(50).find()
@naimsolong naimsolong changed the title Filter post based on date Filter out future date for both post and project May 3, 2024
@naimsolong
Copy link
Owner Author

Commit: 76a9ab6

@naimsolong
Copy link
Owner Author

Fix: 490dc80

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

No branches or pull requests

1 participant