Bootstrap

Saturday, April 4, 2020

Bootstrap

  1. Hugo sites getting started
  2. Mike Dane tutorial on Youtube.

Steps

  1. Created a git repo
  2. Check out blog project locally
git clone https://github.com/HamdanKhan/blog.git hamdan.blog
cd ..
hugo new site hamdan.blog --force

–force because we already created the blog folder from git clone.

  1. Added a theme
git submodule add https://github.com/cntrump/hugo-notepadium.git themes/hugo-notepadium

Theme is notepadium copy-paste its config.toml to project toml file.

  1. Created a disqus account, also setup https://hamdan-blog.disqus.com
  2. Config hamdan-blog as disqus shortcode in config.toml file.
  3. Folder summary, watch Mike Dane videos for details.

Folder Summary

  1. Write the first post
$ hugo new posts/bootstrap.md

This will print

.../hamdan.blog/content/posts/bootstrap.md created

Mark down syntax help

  1. Setting up nginx on Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install nginx
sudo ufw enable
sudo ufw allow 'Nginx HTTP'
sudo ufw allow 'Nginx HTTPS'

Server config From Digitalocean’s nginx tutorial

SSL Config from Digitalocean’s ssl tutorial, comodosslstore, and nginx

SSL is a bit tricky part,

  1. Generate the keys as per domain
  2. Give them to certficate provider
  3. They will email you back some keys which need to configured

Redirect config from http to https from this link

techconfighugomarkdown

Chaos

comments powered by Disqus