date: 2012-12-22 14:07
I would like to be able to specify date: CURRENT or something and have this field autogenerated on document creation. or just point me on place to implement this
CURRENT_DATETIME should work now, via b22708a
I added this variable to the wiki to make it more visible.
With that being said, I can't get it to work. Can anyone provide an example on how to use this?
Looks like this was only ported over to preserve existing implementations of default metadata for older versions of Prose. Support hasn't been added for the new metadata editor configuration yet.
Before I added prose configuration to my _config.yml, prose.io was prepopulating the filenames of new Jekyll posts with the current date. But once I added prose configuration, it stopped doing that, even after I added - date: CURRENT_DATETIME as suggested above.
- date: CURRENT_DATETIME
@joewiz That advice was from an older version of prose. It sounds like it needs to be re-implemented at this point.
Yep, that's correct @bcomnes @joewiz
Ah, thanks, guys. A very nice feature indeed.
Currently, once configuration is added to _config.yml for Jekyll-based sites, the ISO date is not required in the post title field in Prose, and will be added automatically upon file save.
and what about - date: CURRENT_DATETIME? when will it work? or is there another way to set YML on new posts to current date time?
I am also currently moving my blog to be managed with prose. However, handling date is a really important feature.
Any chance that this will be working again any time soon?
I'm having the same problem. Having a date for my posts is one of the most important things. It seems the right date is already generated for the name of the file... couldn't it be used also for a "date" meta field?
@jhabdas I'm not sure what you mean. For me, whether I specify it or not in the config file, the date field seems to be never inferred.
Hello and thank you for this issue report. There have been several point releases in Prose since this issue was opened and there has not been much discussion here. I wanted to ask if you could please assist in confirming this is still an issue in the latest version of the product. If it is fixed, please close this issue :-)
Also, if possible could you please
Since this project is looking for new maintainers (#743), it will be helpful if users can double check the old issues and delete ones that are fixed. This will be super helpful for the new team that works on moving this project forward.
I'm sorry this message is impersonal. And thanks for your help!
I think this issue is fixed. Last time I created a new md document, I didn't specify any date, which was automatically inserted by Prose using the current date.
Re-implement CURRENT_DATETIME replacement in metadata
#831 allows you to set date: CURRENT_DATETIME to get the current date.
You can also do something like:
- name: "date"
Wonderful! Thanks very much for this!
@dereklieu What am I doing wrong, if I just get a date field with the CURRENT_DATETIME string in it instead of the date?
@ndarville If you're using prose.io then these changes haven't been deployed yet. We're discussing automatic deployment in #835. I will look into a manual deployment in the meantime.
@dereklieu Ah, I see.
@dereklieu This is fantastic. Thanks very much for your efforts!