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

Conversation

Projects
None yet
3 participants
@joscarsson
Contributor

joscarsson commented May 28, 2016

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

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Jul 14, 2016

Member

Neat! LGTM.

Member

parkr commented Jul 14, 2016

Neat! LGTM.

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Jul 14, 2016

Member

@jekyllbot: merge

Member

parkr commented Jul 14, 2016

@jekyllbot: merge

@jekyllbot jekyllbot merged commit ea46f2b into jekyll:master Jul 14, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
jekyll/lgtm @parkr has approved this PR.

jekyllbot added a commit that referenced this pull request Jul 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment