2025-05-11 20:51:48 +01:00
2025-04-16 19:03:36 +01:00
2023-10-18 19:27:12 +01:00
2025-04-07 13:06:07 +01:00
2025-04-20 18:36:12 +01:00
2025-05-11 19:10:32 +01:00
2023-07-01 00:38:49 +01:00
2023-10-18 19:44:22 +01:00
2023-07-01 00:38:49 +01:00
2025-05-11 20:50:21 +01:00
2025-04-12 13:41:42 +01:00

My Personal Website

This repo contains the source code for my personal website made using Hugo.

Requirements

You only need to install Hugo to be able to run the website locally, develop, build and deploy it.

Development

  1. Clone the repo:
git clone https://github.com/hazemKrimi/personal-website
cd personal-website
  1. To run the webserver that reloads on saved changes you can use the following command:
hugo server

Deployment

I am using nginx with certbot as a seemless webserver with an SSL certificate to get HTTPS. Here is how I setup the deployment assuming you already have nginx and certbot installed:

  1. Create a file to to be the webserver config under /etc/nginx/sites-available with its content being what is in deploy/nginx.conf of the repo. (You will need to use your own domain)

  2. Symlink the config into /etc/nginx/sites-enabled:

sudo ln -s /etc/nginx/sites-available/<webserver-config> /etc/nginx/sites-enabled/<webserver-config>
  1. Restart nginx and its service if you're using systemd:
sudo nginx -t
sudo systemctl restart nginx
  1. Run certbot to get an SSL certificate for your domain:
sudo certbot --nginx
  1. If you forked this repo you can use the actions workflow that I am using but you will need to add an SSH private key as an action secret. You will find this setting under repo settings > security > secrets and variables > actions. You will add your key as DEPLOY_SSH_KEY in repository secrets.

  2. If you are not using GitHub Actions or not deploying on a VPS you can refer to the Hugo Deployment Guides.

S
Description
My personal website made using Hugo.
Readme GPL-3.0 39 MiB
Languages
HTML 48.6%
CSS 33.3%
JavaScript 18.1%