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

Conversation

Projects
None yet
4 participants
@tmthrgd
Contributor

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

This comment has been minimized.

Member

parkr commented May 6, 2014

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

@mattr-

This comment has been minimized.

Member

mattr- commented May 6, 2014

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

@parkr

This comment has been minimized.

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 added a commit that referenced this pull request May 6, 2014

@parkr parkr merged commit 0087143 into jekyll:master May 6, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details

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.