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

Add two-digit years to permalinks #2301

Merged
merged 2 commits into from
May 6, 2014
Merged

Add two-digit years to permalinks #2301

merged 2 commits into from
May 6, 2014

Conversation

tmthrgd
Copy link
Contributor

@tmthrgd tmthrgd commented May 6, 2014

This adds a :short_year url place holder that allows two-digit years, i.e. years without the century, to be used in urls. It also adds a corresponding entry in site/docs/permalinks.md.

For example:
the permalink: /:year/:month/:day/:title/ -> /2009/04/29/slap-chop/
could become /:short_year/:month/:day/:title/ -> /09/04/29/slap-chop/

the permalink: /:month-:day-:year/:title.html -> /04-29-2009/slap-chop.html
could become /:month-:day-:short_year/:title.html -> /04-29-09/slap-chop.html

@parkr
Copy link
Member

parkr commented May 6, 2014

I'm down. @mattr-, do you have feelings/thoughts about this?

@mattr-
Copy link
Member

mattr- commented May 6, 2014

feels weird to me but i say “Give the people what they want!!” :shipit:

@parkr
Copy link
Member

parkr commented May 6, 2014

Feels weird to me too but mostly because I'll never use it. I agree with the "GIVE THE PEOPLE WHAT THEY WANT!!!" sentiment. #democracy.

@parkr parkr merged commit 0087143 into jekyll:master May 6, 2014
parkr added a commit that referenced this pull request May 6, 2014
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants