-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
"hugo import jekyll" convert all post with "url" cause permalink cohfiguration failed #1887
Comments
This is not a solution but a workaround (and possibly actually a good thing to do when moving). I had the same issue just now and I had to remove the 'url' from the front matter. I am also trying to move to Hugo from Jekyll. My solution was to replace the
To do this, I simply used
The idea is that slug is really needed. I had URLs with |
This issue has been automatically marked as stale because it has not been commented on for at least four months. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, and you feel that it is still valuable, please open a proposal at https://discuss.gohugo.io/. This issue will automatically be closed in four months if no further activity occurs. Thank you for all your contributions. |
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't. If this is a bug and you can still reproduce this error on the latest If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. |
The current behaviour addes a `url` attribute to the frontmatter of all posts imported from Jeklly and assumes the desired permalink structure is /:year/:month/:day/:title/. This may be the case for most peeps, but poses a problem for those that don't use this permalink structure as the `url` attribute takes precedence over the `permalink` attribute in the site-wide configuration meaning it can't be overruled. This changes the behaviour to only set the `url` attribute if the `permalink` attribute is set in the Jekyll frontmatter. The duplication of the confirmation message is also removed. Tests have been updated to reflect this change in behaviour. Fixes #1887
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I love hugo, it is fast and great.
I try to use it to convert my blog from jekyll which run over decade and contain over 1000+ posts.
I found it will force to add "url" in every post which is
/year/month/dat/postname
.for ex:
However it will conflict with my configuration of "permallink", I found it force to store the same "url" no matter your jekyll "permallink".
Here should be two approach of "url" generation rule:
Any idea of this issue?
The text was updated successfully, but these errors were encountered: