-
Notifications
You must be signed in to change notification settings - Fork 104
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
[convert-jekyll] permalink conversion refinement #374
Comments
To confirm, you want the permalink If thats the case, that sounds like a bug in your exporter rather than a jekyll thing because Jekyll also creates "pretty URLs". So if you are wanting it done against how Jekyll works, we'll probably want to split this out from jekyll's conversion to a WP export-specific conversion. |
Oh I see. In my use case, I need to drop the permalink altogether. Maybe some configuration/option to choose what we want to keep in the front? |
Is the reason to drop the permalink specific to you or your conversion? Why do you want to drop it? |
I've check on my WP blog and all the url are like the value converted into Jekyll, so the converter is right. I want to drop it because I want all my generated files flattened into one directory. I guess this is not a job for cobalt but some external scripts? |
Options
While having them flat is nice, having them without ".html" is nicer. I've embraced the pretty URLs on my site. |
Why that? To have them sorted in subdirs? |
It looks nicer when you're URL doesn't have an extension For example: https://epage.github.io/about/ |
hm… true :) Ok, so let give up the whole flattened stuff! But I still need something to transform the |
RE I could see us having a hack in our covnerter to try this if |
The thing is that if we go the import WP route, we need to process the WP export format (a huge XML file). |
I meant the jekyll export from wp but imprting from the XML directly is also reasonable. I plan to eventually implement that for evernote. |
directly from WP's xml… hm why not, I'll think about it, will avoid having some pseudo Jekyll file as input for Jekyll convertor. |
Closing in favor of cobalt-org/cobalt-migrate-jekyll#3 |
While working on migrating my blog from WP to Cobalt through Jekyll, I've used 2 different WP plugin to export to Jekyll:
wp_exporter
)exitwp
)wp_exporter produce this kind of frontmatter:
exit_wp:
wp_exporter produce a more Jekyll compatible front, but it has a bug that delete some links (youtube links in my example).
So I used exit_wp that keep all the content properly, but the front lack of permalink.
Another issue is that both front ends their permalink with a slash instead of
.html
, which makes cobalt try to generate/permalink/index.html
instead of/permalink.html
.So maybe we can improve the converter by providing some options:
.html
The text was updated successfully, but these errors were encountered: