Math student and GNU/Linux user. Support Santilli's keyboard attack to free netizens from censorship.
Build your free personal math blog with comments on GitLab
View demo at https://vincenttam.gitlab.io/bhdemo
Server-side setup
Client-side setup
Clone this repo
git clone --recurse-submodules https://gitlab.com/VincentTam/bhdemo.git <your-site-name>If this is your personal page,
<your-site-name>is<your-user-name>.gitlab.ioStart a new project on GitLab named as
<your-site-name>Add your GitLab bot user as a "developer" for your project
Remove existing comments under the folder
data/and the fileLICENSEModify the following fields in the Hugo config file
config.toml. Comment out stuff by#baseURL = "https://<username>.gitlab.io" title = "Your title" [Params] subtitle = "Your subtitle" [Params.staticman] api = "https://<your-api>.herokuapp.com/v3/entry/gitlab/<username>/<username>.gitlab.io/master/comments" pulls = "https://gitlab.com/<username>/<username>.gitlab.io/merge_requests" [Author] name = "Your name" website = "https://example.com"
If this is your project page, use the following parameters instead
baseURL = "https://<username>.gitlab.io/<your-project>"
[Params.staticman]
api = "https://<your-api>.herokuapp.com/v3/entry/gitlab/<username>/<your-project>/master/comments"
pulls = "https://gitlab.com/<username>/<your-project>/merge_requests"
Either remove the reCAPTCHA config or change the parameters below with your own site key and secret (You may apply your personal ones with your Google account)
[Params.staticman.recaptcha] sitekey = "6Lcv8...--qkFo" secret = "p5u...wNw=="Remove these lines at the bottom of
config.toml[[menu.main]] name = "Source" url = "https://gitlab.com/vincenttam/bhdemo" weight = 2Edit the bottom of
staticman.ymlcorresponding to (6)Comment moderation:
- approval before publish:
moderation: true. - otherwise: go to Settings → Repository → Protected Branches and
permit your GitLab bot to push against
masterbranch.
- approval before publish:
Write new posts.
- Execute
hugo new posts/<your-filename>.md - Edit
content/posts/<your-filename>.md - Save everything with
git add . - Commit with
git commit - Publish with
git push -u origin master

