diff --git a/content/posts/first-post.md b/content/posts/first-post.md new file mode 100644 index 0000000..fe6dae1 --- /dev/null +++ b/content/posts/first-post.md @@ -0,0 +1,37 @@ ++++ +date = '2024-10-19T23:00:41-03:00' +draft = true +title = 'First Post' ++++ + +## A Sysadmin blog + +I was thinking for a couple months to start a blog on the internet. My idea is to share my daily experiences to my fellow sysadmins and network administrators. + +I was looking for something simple and easy to maintain, since I don't want to spend too much of my free time here. + +## The tool + +I found [Hugo](https://gohugo.io/) which is a static website generator that reads content written in Markdown and generates HTML files. + +The fact that it generates static files makes this very performant, and at the same time very simple to use and maintain. + +## The hosting + +Well, since I have one VM on [Hertzner Cloud](https://www.hetzner.com/) for my personal use, I just hosted this blog together on the same VM, since I believe this will not be generating a lot of traffic + +You can also use [Github Pages](https://pages.github.com/) or [Cloudflare Pages](https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/) by following simple instructions! + +## The deploy + +I followed Hugo guide to [deploy by rsync](https://gohugo.io/hosting-and-deployment/deployment-with-rsync/) and I worked very well for me. + +A simple bash script to generate the website and deploy, all in one line! +```bash +#!/usr/bin/env bash +hugo && rsync -avz --delete public/ shinobi.thanwer.com:/srv/www/blog/ +``` + +## The Conclusion + +From my experience until now (which is only the contents of this post btw...), this platform seems to meet my expectationsm I will continue to bring move topics and keep you guys posted! diff --git a/hugo.toml b/hugo.toml index 5373a31..e196180 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,4 +1,4 @@ -baseURL = 'https://blog.thanwer.com/' +baseURL = '/' languageCode = 'en-us' theme = "anubis2" title = "Thanwer's Blog"