Skip to content
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

filename for posts #14

Open
giuliomoro opened this issue Jan 11, 2017 · 1 comment
Open

filename for posts #14

giuliomoro opened this issue Jan 11, 2017 · 1 comment

Comments

@giuliomoro
Copy link
Collaborator

giuliomoro commented Jan 11, 2017

Right, the jekyll documentation states your blog posts need to have a filename of the format:

YEAR-MONTH-DAY-title.MARKUP

but Y-M-D will be overridden if there is a date specified front matter at the top of the file.
One valid solution to avoid confusion and stale dates in filenames is to use the following format for the filename:

0000-00-00-title.MARKUP

and specify the date in the front matter

@disastrid
Copy link
Collaborator

True. There are, however, some drawbacks:

  • this means that the markdown files will have no indication of dates when you look at the file structure, which may lead to confusion when we have a lot of posts (to find one specifically you'll have to go by title).
  • It also means that if we update the structure at any point in the future we will have to account for this functionality, or re-name all posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants