-
Notifications
You must be signed in to change notification settings - Fork 163
Extensionless permalinks #244
Comments
Thanks for all your feedback 😃 So in this case for Pretzel, if a permalinks does not end with a permalink or a file extension Is that ok for you? |
@laedit the permalink for |
I can see how you read the jekyll docs that way. Unfortunately, I don't have a copy of jekyll running anymore because it is so difficult to setup on windows. That is the whole reason I started looking at other static site generators. I would encourage you to test the jekyll behavior yourself. For what it is worth, that doesn't seem to be how GitHub handles it. My blog is currently hosted on GitHub. You can see that in my _config.yaml file I have |
I confirm that using Portable Jekyll it is But the docs state that you have to activate a special configuration on your server to handle the extensionless permalink. The server will work for I think that before all extensionless permalinks was transformed to So actually we already support an unreleased feature of Jekyll 😃 |
Well, you don't quite support the unreleased feature because as you said before the path should be Personally, I prefer the current behavior of Jekyll (i.e. |
Since the feature is still in dev for Jekyll I'm on your side, I think we must implement the current production Jekyll feature and wait for the release of this feature to adapt. @JakeGinnivan what is your thought on this? |
I think extensionless goes to a folder/index.htm I know I use that feature for my blog, so not supporting it would block me from migrating Sent from my Windows Phone From: Jérémie Bertrandmailto:notifications@github.com Since the feature is still in dev for Jekyll I'm on your side, I think we must implement the current production Jekyll feature and wait for the release of this feature to adapt. @JakeGinnivanhttps://github.com/JakeGinnivan what is your thought on this? — |
Ok, I'll do that this week. |
I tried to use pretzel 0.2.1.169 (build 175) which I downloaded from Appveyor (non script cs zip) on my github pages site that I had been using with Jekyll from a year ago (Feb-April 2014) and discovered the following. I have reproduced it using the sample project.
Extensionless permalinks as described in the Jekyll docs don't work right (note: the docs say this is a pre-release feature, but I don't think that is correct, because I was using this feature a year ago from jekyll on windows and in windows you must install an old version of jekyll because all the other versions don't work on windows). Permalinks with a trailing slash '/' are fine. However, permalinks without one generate files without extensions, they should behave the same as ones with a trailing slash.
Steps to reproduce
pretzel create
permalink: /blog/:year/:month/:title
to the endpretzel bake
You will then find that the blog post is in the file
_site\blog\2015\05\myfirstpost
with no extension. It should be in_site\blog\2015\05\myfirstpost\index.html
.The text was updated successfully, but these errors were encountered: