Stats
Communities
View all
Stack Exchange network consists of 181 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 ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsMath student and GNU/Linux user. Support Santilli's keyboard attack to free netizens from censorship.
View demo at https://vincenttam.gitlab.io/bhdemo
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 your GitLab bot user as a "developer" for your project
Remove existing comments under the folder data/
and the file LICENSE
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"
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:
moderation: true
.master
branch.Write new posts.
hugo new posts/<your-filename>.md
content/posts/<your-filename>.md
git add .
git commit
git push -u origin master
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.