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

Add functionality for importing Blogger comments #258

Merged
merged 2 commits into from Jul 14, 2016
Merged

Add functionality for importing Blogger comments #258

merged 2 commits into from Jul 14, 2016

Conversation

joscarsson
Copy link
Contributor

Similar to the WordPress importer, this PR adds support for importing comments from Blogger.

When comments: true is specified in options comments are written to a custom collection _comments. They are named according to the slug of the post, such as 2016-01-my-post-<number>.html where <number> is a simple incrementing counter. To be able to connect comments with posts, there is a metadata field on the front matter blogger_post_id which refers to the post the comment is for (matches the blogger_id on posts).

Usage example can be seen on the blog I just imported, http://joscarsson.github.io/runtjordennu (warning, Swedish). The comments are added to the posts through a generator, and used when rendering the posts.

I don't usually code in Ruby, so this might be very non-standard/wrong - feel free to comment/give corrections.

@parkr
Copy link
Member

parkr commented Jul 14, 2016

Neat! LGTM.

@parkr
Copy link
Member

parkr commented Jul 14, 2016

@jekyllbot: merge

@jekyllbot jekyllbot merged commit ea46f2b into jekyll:master Jul 14, 2016
jekyllbot added a commit that referenced this pull request Jul 14, 2016
@jekyll jekyll locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants