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

Feature Reuest: Append slug: hour, minutes, secounds #1207

Merged
merged 4 commits into from
Apr 5, 2018

Conversation

terrierscript
Copy link

- Summary
When I'm not want to use {{slug}}, it's case occur happen can only 1 post per one day.
This append slug hours, minutes, seconds like {{year}}-{{month}}-{{day}}-{{hours}}-{{minutes}}-{{seconds}}.

- Test plan
execute yarn test and build

- Description for the changelog

  • Append implementation
  • Append document
  • Append contributor ( if this PR is merged )

- A picture of a cute animal (not mandatory but encouraged)

@verythorough
Copy link
Contributor

verythorough commented Mar 28, 2018

Deploy preview for cms-demo ready!

Built with commit 287d2b4

https://deploy-preview-1207--cms-demo.netlify.com

@verythorough
Copy link
Contributor

verythorough commented Mar 28, 2018

Deploy preview for netlify-cms-www ready!

Built with commit 287d2b4

https://deploy-preview-1207--netlify-cms-www.netlify.com

Copy link
Contributor

@erquhart erquhart left a comment

Choose a reason for hiding this comment

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

Great addition - just a typo to fix in the docs and this is 👍

@@ -133,6 +133,9 @@ For folder collections where users can create new items, the `slug` option speci
- `{{year}}`: 4-digit year of the file creation date
- `{{month}}`: 2-digit month of the file creation date
- `{{day}}`: 2-digit day of the month of the file creation date
- `{{hour}}`: 2-digit hour of the file creation date
- `{{minute}}`: 2-digit minute of the month of the file creation date
- `{{second}}`: 2-digit second of the month of the file creation date
Copy link
Contributor

Choose a reason for hiding this comment

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

Typos in these last two lines (extra "of the month" in each).

Copy link
Author

Choose a reason for hiding this comment

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

I fixed it!

@tech4him1 tech4him1 merged commit 100f562 into decaporg:master Apr 5, 2018
brianlmacdonald pushed a commit to brianlmacdonald/netlify-cms that referenced this pull request May 23, 2018
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.

4 participants