Skip to content

Add support to read date from filename when new_post_name was set. #60

Closed
ohsc wants to merge 1 commit intohexojs:masterfrom
ohsc:filename-date
Closed

Add support to read date from filename when new_post_name was set. #60
ohsc wants to merge 1 commit intohexojs:masterfrom
ohsc:filename-date

Conversation

@ohsc
Copy link

@ohsc ohsc commented Jan 15, 2013

Add support to read date from filename when new_post_name was set. And the date set in YAML Front Matter still has the high priority.

I was octopress old user, however I found there was no date set in my markdown files. So I work on this feature.

…d the date set in YAML Front Matter still has the high priority.
@tommy351
Copy link
Member

I think it's confusing and the date setting in the file will be meaningless.

@ohsc
Copy link
Author

ohsc commented Jan 15, 2013

No, both two ways are alternative. The date setting in the file has higher priority. It will use the date in filename only if the date in the file is not set.

This was convient for the users migrating from octopress, or they have to modify all the files.
Beside, for the users wasn't set the new_post_name, the feature is hidden.

@tommy351
Copy link
Member

Ok, i got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants