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

feat(post_ermalink): add :second attr option for post permalink #4185

Merged
merged 2 commits into from
Mar 17, 2020
Merged

feat(post_ermalink): add :second attr option for post permalink #4185

merged 2 commits into from
Mar 17, 2020

Conversation

kkocdko
Copy link
Contributor

@kkocdko kkocdko commented Mar 12, 2020

What does it do?

Like this:

# _config.yml
permalink: :year/:month/:day/:hour/:minute/:second/:post_title/

Will generate:

example.com/2015/05/06/12/13/14/my-new-post/

How to test

git clone -b BRANCH https://github.com/USER/hexo.git
cd hexo
npm install
npm test

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

Sorry, something went wrong.

Copy link
Member

@SukkaW SukkaW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add :second for time is omitted in front-matter test case then.

@kkocdko
Copy link
Contributor Author

kkocdko commented Mar 14, 2020

I just got an error on the commit title... Now fixed.

@kkocdko kkocdko requested a review from SukkaW March 14, 2020 13:24
@SukkaW SukkaW merged commit 6437ff5 into hexojs:master Mar 17, 2020
@SukkaW SukkaW mentioned this pull request Jul 25, 2020
22 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants