To add yourself to the members page, you can run the helper script:
./tools/add-member.sh NAME
Otherwise you can do it manually like so:
hugo new members/NAME.md
vim content/members/NAME.md
Tip
Using the hugo new command listed above will create the template automatically
The content of the members page are as follows:
title
: Your usernamename
: Your full name (optional)joined
: Approximate date of join (year/month is enough)roles
: A list of roles (please don't add custom roles 🙏)avatar
: Path of your avatar image (relative to/static
). Please add the image as/static/avatars/X
and put the avatar value as"/avatars/X"
Values supported in the social
table are:
mail
github
linkedin
website
Clone with submodules:
git clone --recurse-submodules git@github.com:TheRomanXpl0it/TheRomanXpl0it.github.io.git
Install hugo modules:
hugo mod get
hugo mod tidy
Install npm packages:
npm install
Important
To build properly the scss you should install Dart Sass.
Then you can run the website with:
hugo server
Build the image and serve:
docker build -t hugo-dev .
# if you want to quickly serve the current site
docker run -p 1313:1313 --rm hugo-dev:latest hugo serve --bind 0.0.0.0
# if you want to make it better <3
docker run -p 1313:1313 --rm -it -v `pwd`:/code hugo-dev:latest bash
# inside the container you'll have
# /src -> original code
# /code -> the current code in a volume
cd /code
hugo serve --bind 0.0.0.0