Skip to content

lemonase/blog

Repository files navigation

My personal blog and portfolio @ jamesdixon.dev

I am currently using Hugo to generate the static (HTML/CSS/JS) portion site and Blowfish as my theme...

Many thanks to the maintainers of these projects!

Hugo Commands

running hugo dev server (watching for file changes and drafts)

hugo serve -D

creating new pages

# create a new post
hugo new posts/{post_name}/index.md

# create a new project page
hugo new projects/{project_name}/index.md

# create a new website showcase page
hugo new websites/{website_name}/index.md

updating git submodules (for themes)

Note: Git submodules do not get initialized or updated automatically upon cloning/pulling!

To init/update submodules after cloning:

git submodule init

git submodule update --recursive --remote --merge

deploying

Here is just a quick rundown of how and where I deploy my site.

I have a small DigitalOcean Droplet VPS running nginx (for servering) and certbot (for certs). Digital Ocean Referral Link below!

There is a deploy.sh script which is just a wrapper around running hugo && rsync user@server:/var/www/html. I have a git hook that runs this script on every git push.

And that is the whole process.

I do not currently use any CI/CD solutions, app platforms or containerization as of now for a few reasons:

  1. small static site (can be served anywhere for cheap)
  2. i don't mind managing my VPS and nginx (compared to something like docker compose)
  3. it works

Maybe sometime in the future, I will containerize everything make a blog post about it... :)

Thank you for reading!

DigitalOcean Referral Badge

About

Source for muh static blog. [deprecated]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages