Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Minimal Jekyll template demonstrating Staticman v3 comments with YAML storage and pull-request moderation.
Test Staticman Lab is a minimal Jekyll template that demonstrates how to integrate Staticman v3 comments into a static site, delivering each comment as a YAML data file via GitHub pull requests.
Test Staticman Lab is a minimal Jekyll static site template whose core function is to show how Staticman v3 works with Jekyll. It takes a standard Jekyll project and adds a comment form, a Staticman API configuration, and a data pipeline that stores each comment as a YAML entry under _data/comments/<slug>/. The template runs on Jekyll, a Ruby-based static site generator, and is maintained by Vincent Tam; the live demo is served by the @staticmanlab GitHub account using Staticman's hosted API.
/entry endpoint configured in _config.yml.moderation: true (the default in staticman.yml), each comment arrives as a pull request; set it to false to merge automatically.entry-<timestamp>.yml files under _data/<propertyname>/<slug>/, so no external database is needed.index.html, _includes/comments.html, _layouts/default.html, _config.yml, staticman.yml, and generated data files._config.yml exposes title, subtitle, url, and staticman.api to point the form at your own repo and branch.https://staticman3.herokuapp.com/v3/connect/github/<username>/<repo>._includes/comments.html to change how each comment field (author, email hash, message) is wrapped in HTML tags and classes._data folders.The setup process is: clone the repository, remove any existing comments under _data and the public-domain LICENSE file, then edit _config.yml with your site title, URL, and a Staticman API endpoint pointing at your GitHub user, repo, branch, and property name. Push the repo to GitHub, invite @staticmanlab as a collaborator, and visit the connect URL. When a reader submits the form, Staticman posts a new YAML entry to your repository, either as a pull request or as a direct commit depending on the moderation flag.
No. The site is static Jekyll; Staticman's hosted API handles the comment ingestion and writes files to your GitHub repository.
By default, moderation: true in staticman.yml makes each comment arrive as a pull request for review. Changing it to false enables automatic merging.
Each comment is stored as a YAML file named entry-<timestamp>.yml in the _data/comments/<slug>/ directory, where the slug comes from the form's test-slug value.
