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

Wondering if issues with deleting permalink lines are intended or not #58

Closed
DanielTakeshi opened this issue May 12, 2015 · 1 comment
Closed

Comments

@DanielTakeshi
Copy link

I am migrating http://www.seitad.com to http://danieltakeshi.github.io/ and used this tool to help out in the process. I seem to have gotten all my old posts converted to markdown. However, when I pushed the updates to my github page, I found that clicking on the links to each blog post just led me back to the homepage.

I later realized it was a problem with permlinks. With my wordpress.org site, the blog posts were of the form:

http://www.seitad.com/?p=2391

with the "2391" being replaced by various numbers to indicate different blog posts. This tool preserved the "?p=2391" part and put this in the header of the markdown files. I later figured out that by deleting that line for a single post, I could get the permalinks working as intended because it defaults to the /year/month/day format.

I'm just wondering if this is an intended issue because otherwise I will need to delete all the permalink lines in my posts. This is not a big deal, of course, but I'm also wondering if: (a) there is another way to get permalinks working, perhaps by modifying the "permalink" variable in the _config.yml, and (b) if this will affect future comment migration via Discus (though I understand this is not a Discus-related thing). Thanks.

@DanielTakeshi
Copy link
Author

After thinking about this a little more, I think the easiest thing to do is go to Wordpress first and change the way it does permalinks to allow for "Day and Name". Then we can run this tool, and I think it will work better for Jekyll if we make the original permalink obey Jekyll's formatting requirements.

I have not tested this yet, though.

Edit: tested and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant