-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add option to make "cobalt publish" add date prefix to filename #562
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
posts:
add_date_prefix: true We need to consider what name makes the intent clear. This name doesn't help us know it is scoped to We can also look at re-framing the problem. We could instead consider a flag to enable extracting the published_date from the filename and if it is enabled, then |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I tweaked it some to try to make it more explicit. Feel free to update it if I misunderstood
What happens if the existing date is not the current date? If |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've updated the RFC with my proposal on inferring published_date from filename. It is based on my recent experience of putting my meetup talks on my site. The ideal is that I have a See https://github.com/epage/epage.github.io/tree/source/blog/talks |
Just to be sure, the flag to activate is still |
Tried to use it, for some reason my file is not considered in the My blog is like this:
I'm in What am I missing? EDIT: I don't know how I missed this, the only think I can see is that I didn't test after adding checking the collection… so dumb me…
EDIT2: fixed with #587 |
I didn't pay attention when rewriting the commit message, I just took from the existing commit message. |
Thanks! Will go and look at it. |
To keep files in order by chronology, it would be cool to add the
YYYY-MM-DD-
prefix to the filename oncobalt publish
Proposal
Activation by a configuration field in
_cobalt.yml
:Default:
cobalt publish
behavior:Impact on inferring
published_date
from filenameFor now, we will unconditionally still infer the date from the filename.
cobalt publish
Collections
support. #368), we sometimes have to imitate it.An open question for later is whether we should make the inferring of the date exclusive to this flag being enabled. That question is irrelevant until we have Collections support.
The text was updated successfully, but these errors were encountered: