Is there a way to make the auto-post? #605
Unanswered
mobilemintcarcare
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I don't think there is any auto-post feature for this template at the moment, but feel free to create a script for that if you like |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mobilemintcarcare: You can filter posts by date. For example, you can modify page.tsx: export default async function Page() {
let sortedPosts = sortPosts(allBlogs)
if (isProduction) {
const today = new Date()
today.setHours(12, 0, 0, 0)
sortedPosts = sortedPosts.filter((post) => {
return new Date(post.date) <= today
})
}
const posts = allCoreContent(sortedPosts)
return <Main posts={posts} />
} Check that commit: dariusz-wozniak/dariuszwozniak.net-v2@793eb42 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the post date matches the current date and then publishes automatically?
Beta Was this translation helpful? Give feedback.
All reactions