Skip to content

Conversation

lyndseypadget
Copy link
Contributor

This PR addresses #560. I'm unclear if comments fall outside the scope of jekyll-import, but I personally found this solution helpful and effective.

These steps are not automated. The user must follow the steps at script/drupal7-comment-migrator/0-README.md, but all of the SQL and Python is provided for them.

It is necessary to generate the node ID (called nid) in the front matter of each post file. This is what establishes the relationship between the node and its comment file, which would be found in _data/comments/yournodeid.yml. So I updated jekyll-import's drupal importer to generate that.

I also added some contribution instructions for ruby amateurs like myself. 😅

When finished, you'll end up with comments pulled into each post dynamically using Liquid include templates:
4-finished-example

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

Successfully merging this pull request may close these issues.

1 participant