Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
14,227
reputation
10
29

GNUSupporter 8964民主女神 地下教會

A math student and GNU/Linux user.

Support Ciro 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

  1. Clone this repo

    git clone 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 @staticmanlab 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. 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"
    
  6. 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 = "6Lcv8G8UAAAAAEqV1Y-XEPum00C_DxhD6O--qkFo"
      secret = "p5uHlH9hCqp...33F1WaIYuwNw=="
    
  7. Remove these lines at the bottom of config.toml.

    [[menu.main]]
      name = "Source"
      url = "https://gitlab.com/vincenttam/bhdemo"
      weight = 2
    

Write new posts.

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

Demo Screenshots

staticman demo

staticman math comment preview

47
answers
25
questions
~803k
people reached

Top tags (46)

Score 94
Posts 58
Posts % 81
Score 50
Posts 11
Score 42
Posts 10
Score 14
Posts 10
Score 6
Posts 9
Score 6
Posts 6

Top posts (72) All Questions Answers | Votes Newest

View all questions and answers

Badges (39)

Gold

Silver

10

Rarest

Bronze

29

Rarest