Skip to content
Source code for my personal blog hosted at
CSS HTML JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Source code for my personal blog, hosted at

The static CSS and HTML are generated using Hugo and a slightly modified version of the Zzo theme As the Zzo theme being used for this website has been modified a bit, it's not synced up with the actual theme hosted on Github, and will gradually drift as changes to Hugo and Zzo are made.

This project was built using Hugo Version 0.62

Deploying The Static Website to an Ubuntu Droplet on Digital Ocean



# This installs the latest version of Hugo and may eventually break.
# `apt-get` installs an old version of Hugo that does not work with this repository, so snap
# is being used instead.

sudo apt-get update
snap install hugo
sudo apt-get install nginx

# Make an exception for NGINX in our Firewall.

sudo ufw allow 'Nginx Full'

# Clone the repo into your home directory.

cd ~
git clone

# Copy the deploy scripts to the /bin directory and make them executable.

cp blog/ /bin/deploy
chmod +x /bin/deploy

cp blog/ /bin/deploy_nginx
chmod +x /bin/deploy_nginx

# Create the folder path that will ultimately store the static pages.

sudo mkdir -p /var/www/

# Assign the correct access rights to the folder.

sudo chown -R $USER:$USER /var/www/
sudo chmod -R 755 /var/www/

# Copy the nginx configuration file for the website.

cp ~/blog/blog.nginx /etc/nginx/sites-enabled/blog
cp ~/blog/blog.nginx /etc/nginx/sites-available/blog

# At this point, we can run and enable NGINX with the following commands:

sudo systemctl start nginx
sudo systemctl enable nginx

# If you make any changes to the NGINX configuration file, just run:


# If you run into issues when trying to setup the nginx configuration, run the following to get an
# error output.

nginx -t

# To deploy changes to the actual website, run:


Setting up SSL through Certbot and Letsencrypt

# First you'll need to run these instructions to download certbot.

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update

# Then you'll need to install it

sudo apt-get install certbot python-certbot-nginx

# Lastly, register your certbot and automatically update your Nginx configuration with the SSL Certification Information.

sudo certbot --nginx
You can’t perform that action at this time.