Stats
17,080
reputation
374k
reached
719
answers
15
questions
Loading…
About
A math student and GNU/Linux user. Support Santilli's keyboard attack to free netizens from censorship.
Build your personal math blog with comments for free on GitLab
View demo at https://vincenttam.gitlab.io/bhdemo (source)
Simple 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.io
Start a new project on GitLab named as
<your-site-name>
- Add @staticmanlab as a "developer" for your project
- Remove existing comments under the folder
data
and the fileLICENSE
Modify the following fields in the Hugo config file
config.toml
. You may comment out stuff by#
baseURL = "https://<username>.gitlab.io" title = "Your title" [Params] subtitle = "Your subtitle" [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" [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://staticman3.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 = 2
Edit the bottom of
staticman.yml
corresponding to (6)- Comment moderation:
- approval before publish:
moderation: true
. - otherwise: go to Settings → Repository → Protected Branches and
permit @staticmanlab to push against
master
branch.
- 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
Demo
Badges
View all badges
11
gold badges
-
MarshalMar 2, 2019
-
Copy EditorMar 19, 2017
-
Unsung HeroJan 17, 2016
30
silver badges
-
Research AssistantFeb 28, 2019
-
ArchaeologistDec 27, 2017
-
ConventionApr 4, 2018
64
bronze badges
-
SynonymizerAug 31, 2019
-
probabilityDec 13, 2020
-
sequences-and-seriesMay 13, 2018
Top tags
View all tags
143
Score
73
Posts
10
Posts %
127
Score
85
Posts
12
Posts %
125
Score
93
Posts
13
Posts %
119
Score
46
Posts
6
Posts %
109
Score
77
Posts
10
Posts %
78
Score
36
Posts
5
Posts %
Top Meta posts
39
82
Top network posts
View all network posts