Scheduled Posts Feature #198
taufik-nurrohman
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea is to compare two given dates where the first date is the current date and the other is the future date:
Store the schedule date in a property other than
time
(let’s sayschedule
) and then save the associated page as draft:Save it as
.\lot\page\article\scheduled-post.draft
.To monitor the publication schedule, you will need to loop through the contents of
.\lot\page\article
folder to compare theschedule
date value with the current date value. If the criteria has been met, change the page file extension from.draft
to.page
, and addtime
data to the associated page file if necessary:Another way is to store the schedule data separately from the page. I didn’t check the performance but it should be more efficient than the above method because we can take off the YAML parser tasks just to get the schedule data:
Beta Was this translation helpful? Give feedback.
All reactions