Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including wordpress-comments-jekyll-staticman with all npm packages installed. Try it out:

var wordpressCommentsJekyllStaticman = require("wordpress-comments-jekyll-staticman")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

wordpress-comments-jekyll-staticman v1.1.1

Convert Wordpress comment into Jekyll for Staticman.


NPM Version travis xo

You can now use a full export tool (Including posts, pages & comments) with this tool.

This little import tool allow to imports comments from a WordPress blog, to be used on Jekyll with Staticman (v2).


npm i wordpress-comments-jekyll-staticman -g


First, import your comments from WordPress with the built-in export tool, then launch this command:

wp2sm {{ xml file }} {{ folder for comments }}


wp2sm comments.xml /my/folder

Staticman settings

Theses settings are used on the app, and was made to work with this kind of themes.

You can paste this fields to your staticman.yml file:

  allowedFields          : ['name', 'email', 'url', 'message']
  filename               : comment-{@timestamp}
  format                 : "yml"
  path                   : "/_data/comments/{options.slug}"



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free