Added abbreviated month + test. #890

merged 2 commits into from Apr 5, 2013

3 participants


This is my stab at #410. Hopefully this helps us get to the 1.0 milestone! Know the change is relatively simple but if you need anything drop me a comment.

Jekyll member

👍 from me. Would prefer to see my change to the key made before this is merged, but either way, I'm good with this.

Jekyll member

I'd prefer something like short_month. @mojombo will probably have thoughts on this as well.


@parkr @mattr- figured the thing that would be most up for discussion was the naming convention 😉

Thanks so much for the feedback! Let me know if this should be changed around again.


Any word on a merge for this guys? Already working on a separate commit for another issue I'd like to tackle!

@parkr parkr commented on the diff Apr 3, 2013
@@ -225,6 +225,17 @@ def do_render(post)
+ context "with custom abbreviated month date permalink" do
+ setup do
+ = '/:categories/:year/:short_month/:day/:title/'
+ @post.process(@fake_file)
+ end
+ should "process the url correctly" do
+ assert_equal "/2008/Sep/09/foo-bar/", @post.url
parkr Apr 3, 2013 Jekyll member

Any reason you would prefer capitalized over lowercase?


I believe it's automatically returned capitalized. I have no preference either way and we could standardize on lowercase if that is the preferred way to go. Could set to lowercase and add another test to make sure the casing is always consistent?

Jekyll member

Right, that's what I was thinking. I'm just not sure I like the lowercase version... Hm.

Do you have a preference? As you write your blog, would you prefer one or the other?


Personally, for me, I'd prefer the month's to stick to the capitalized abbreviation as that would be my expectation if I was going to abbreviate a month anywhere.

Jekyll member

Ok capital it is!

@parkr parkr merged commit 483a0b6 into jekyll:master Apr 5, 2013

1 check passed

Details default The Travis build passed
@parkr parkr added a commit that referenced this pull request Apr 5, 2013
@parkr parkr Update history to reflect merge of #890 464ea6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment