Beautiful Hugo adds native Staticman support created by Bruno Adele. Staticman adds native GitLab support written by Nicolas Tsim.
Basic setup
Clone this repo.
git clone https://gitlab.com/pages/hugo.git <your-site-name>Remove existing comments under the folder
dataand the forking relationship. (Otherwise,.gitlab-ci.ymlwon’t start.)Apart from the usual config parameters, modify the following fields responsible for Staticman in
config.toml. You may comment out stuff by#.[Params.staticman] api = "https://staticman3.herokuapp.com/v3/entry/gitlab/<username>/<username>.gitlab.io/master/comments" pulls = "https://gitlab.com/<username>/<username>.gitlab.io/merge_requests"Invite @staticmanlab as a collaborator with developer access.
Optional features
- Instant regeneration: allow “maintainers + developers” to push to protected
branch in the GitLab repo’s config, and set
moderationto false instaticman.yml. - reCAPTCHA: new users have to apply for a new site key for each site, and then
edit the section
[Params.staticman.recaptcha]with their proper site key and site secret encrypted through the/v3/encryptendpoint.
3 comments
Vincent Tam
First comment
Markdown preview
Test guy
Vincent Tam
Test reply
Test staticman PR 289
Why no math $f$?
$$Give 5 + some = math!$$
Multiline content. See MR.