Skip to content

Add functionality for importing Blogger comments#258

Merged
jekyllbot merged 2 commits intojekyll:masterfrom
joscarsson:blogger-comments
Jul 14, 2016
Merged

Add functionality for importing Blogger comments#258
jekyllbot merged 2 commits intojekyll:masterfrom
joscarsson:blogger-comments

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.

3 participants