Skip to main content
GNUSupporter 8964民主女神 地下教會's user avatar
GNUSupporter 8964民主女神 地下教會's user avatar
GNUSupporter 8964民主女神 地下教會's user avatar
GNUSupporter 8964民主女神 地下教會
  • Member for 8 years, 7 months
  • Last seen more than a month ago
Stats
17,677
reputation
1.9m
reached
84
answers
40
questions
Loading…
About

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

See https://lstu.fr/smguide.

Client-side setup

  1. 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

  2. Start a new project on GitLab named as <your-site-name>

  3. Add your GitLab bot user as a "developer" for your project

  4. Remove existing comments under the folder data/ and the file LICENSE

  5. Modify 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"
  1. 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=="
    
  2. Remove these lines at the bottom of config.toml

     [[menu.main]]
       name = "Source"
       url = "https://gitlab.com/vincenttam/bhdemo"
       weight = 2
    
  3. Edit the bottom of staticman.yml corresponding to (6)

  4. Comment moderation:

    • approval before publish: moderation: true.
    • otherwise: go to Settings → Repository → Protected Branches and permit your GitLab bot to push against master branch.

Write new posts.

  1. Execute hugo new posts/<your-filename>.md
  2. Edit content/posts/<your-filename>.md
  3. Save everything with git add .
  4. Commit with git commit
  5. Publish with git push -u origin master

Demo

demo staticman math comment

This user doesn’t have any gold badges yet.
20
silver badges
45
bronze badges
183
Score
107
Posts
86
Posts %
84
Score
18
Posts
15
Posts %
78
Score
16
Posts
13
Posts %
21
Score
19
Posts
15
Posts %
20
Score
12
Posts
10
Posts %
11
Score
9
Posts
7
Posts %
Top posts
View all questions and answers
answer
17
Feb 14, 2019
answer
17
Apr 30, 2019
question
16
Feb 4, 2019
question
14
Jan 8, 2021
answer
14
Feb 26, 2019
answer
13
Feb 26, 2019