coricamu icon indicating copy to clipboard operation
coricamu copied to clipboard

datetime sets date for it to be posted

Open josphh opened this issue 3 years ago • 1 comments

Description

The option datetime should determine when the post publishes, for example if it is set in the future, it should only show on the page on that date

Advantages

It would allow easier writing of articles in advance, and would prevent incorrect dates.

Implementation details

For Coricamu to understand what format it is in, maybe an option for the format should be designated, much like the language is, in default.nix.

josphh avatar Feb 12 '22 10:02 josphh

Coricamu currently just builds static HTML files to be uploaded to a server; releasing posts at a certain time would require custom server software which regenerates the HTML every time the page is loaded.

The date format is already restricted to YYYY-MM-DD HH:MM:SS, followed by either Z for UTC or a timezone in the format ±HH:MM. (With everything except YYYY-MM-DD being allowed to be omitted.)

As a temporary solution you can create the future post on a Git branch, then merge the pull request at the appropriate time.

danth avatar Feb 12 '22 12:02 danth