Compare commits

...

40 Commits

Author SHA1 Message Date
9981b573f3 first post
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 04:13:07 -03:00
16382825be add all languages planned to be supported
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 04:00:10 -03:00
3391a18da7 blog?
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:55:23 -03:00
dbd9b9c833 stupid non template config
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:52:37 -03:00
f6817eb953 home page?
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:51:05 -03:00
b4fbad79f2 add pt
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:46:19 -03:00
f264e2ce6f remove old themes
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:42:45 -03:00
4e5d468f7b back to papermod 2025-11-10 03:42:17 -03:00
655cd841aa change theme
All checks were successful
Build Hugo Site / build (push) Successful in 10s
2025-11-10 03:39:15 -03:00
1c71f35e1d use example website
All checks were successful
Build Hugo Site / build (push) Successful in 10s
2025-11-10 03:35:24 -03:00
6c6cbc6881 update theme once again
All checks were successful
Build Hugo Site / build (push) Successful in 10s
2025-11-10 03:32:54 -03:00
a975b3d2d0 I know how to spell ok
Some checks failed
Build Hugo Site / build (push) Failing after 8s
2025-11-10 03:28:10 -03:00
4e056ba410 change theme
Some checks failed
Build Hugo Site / build (push) Failing after 8s
2025-11-10 03:25:59 -03:00
6c8e143bea update title again
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:07:03 -03:00
ce6eee1514 update title
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-11-10 03:06:25 -03:00
760ca4c70b add submodules
All checks were successful
Build Hugo Site / build (push) Successful in 8s
2025-11-10 02:54:56 -03:00
12de9f6186 oops
All checks were successful
Build Hugo Site / build (push) Successful in 6s
2025-11-10 02:53:02 -03:00
6b76c3044f install deps
Some checks failed
Build Hugo Site / build (push) Failing after 3s
2025-11-10 02:52:20 -03:00
1dc2d68eff use different image
Some checks failed
Build Hugo Site / build (push) Failing after 41s
2025-11-10 02:50:36 -03:00
ff4d896917 take 4
Some checks failed
Build Hugo Site / build (push) Failing after 6s
2025-11-10 02:49:29 -03:00
a7d6be5ed9 take 3
Some checks failed
Build Hugo Site / build (push) Failing after 6s
2025-11-10 02:46:58 -03:00
02fea3acbf take 2
Some checks failed
Build Hugo Site / build (push) Failing after 5s
2025-11-10 02:44:41 -03:00
a6ecb14763 update install huge step
Some checks failed
Build Hugo Site / build (push) Failing after 6s
2025-11-10 02:42:17 -03:00
851c54f335 update hugo
Some checks failed
Build Hugo Site / build (push) Failing after 6s
2025-11-10 02:40:03 -03:00
99f2e4c2ef install git
Some checks failed
Build Hugo Site / build (push) Failing after 6s
2025-11-10 02:38:38 -03:00
0955fcd348 remove submodule
Some checks failed
Build Hugo Site / build (push) Failing after 26s
2025-11-10 02:37:27 -03:00
bba85939c9 maybe one day this will work
Some checks failed
Build Hugo Site / build (push) Failing after 9s
2025-11-10 02:36:52 -03:00
8643c3c6fd remove submodule
Some checks failed
Build Hugo Site / build (push) Failing after 2s
2025-11-10 02:36:08 -03:00
2a8feb5839 update build to install hugo
Some checks failed
Build Hugo Site / build (push) Failing after 5s
2025-11-10 02:35:41 -03:00
dc190bb251 fix maybe?
Some checks failed
Build Hugo Site / build (push) Failing after 4s
2025-11-10 02:33:50 -03:00
7d05260276 something on first post
All checks were successful
Build Hugo Site / build (push) Successful in 5s
2025-11-10 02:31:06 -03:00
5222ba5485 update base url 2025-11-10 02:30:47 -03:00
59b0d11dd2 update deploy
All checks were successful
Build Hugo Site / build (push) Successful in 5s
2025-11-10 02:27:38 -03:00
949549d1b9 debug key file
Some checks failed
Build Hugo Site / build (push) Failing after 3s
2025-11-10 02:26:24 -03:00
6218f35526 try secret stuff
Some checks failed
Build Hugo Site / build (push) Failing after 4s
2025-11-10 02:24:57 -03:00
2760e34494 print deploy path
Some checks failed
Build Hugo Site / build (push) Failing after 4s
2025-11-10 02:23:29 -03:00
e9a4ba9903 more debug
Some checks failed
Build Hugo Site / build (push) Failing after 5s
2025-11-10 02:08:25 -03:00
81b34387f5 debug ssh
Some checks failed
Build Hugo Site / build (push) Failing after 4s
2025-11-10 02:05:44 -03:00
539c7e9532 use other ssh key type
Some checks failed
Build Hugo Site / build (push) Failing after 4s
2025-11-10 02:03:37 -03:00
ab7f997f18 update build workflow
Some checks failed
Build Hugo Site / build (push) Failing after 4s
2025-11-10 01:46:46 -03:00
7 changed files with 101 additions and 14 deletions

View File

@@ -6,24 +6,32 @@ on:
jobs:
build:
runs-on: docker
runs-on: self-hosted
container:
image: klakegg/hugo:ext-alpine
image: hugomods/hugo:debian-nightly
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install deploy deps
run: |
apt-get update
apt-get install -y rsync openssh-client
- name: Build
run: hugo --minify
- name: Deploy
run: |
apk add --no-cache rsync openssh
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" public/ ${SSH_USER}@${SSH_HOST}:${DEPLOY_PATH}
mkdir -p /root/.ssh
echo "$SSH_KEY" > /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519
rsync -avz --delete \
-e "ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no" \
public/ ${SSH_USER}@${SSH_HOST}:${DEPLOY_PATH}
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
.hugo_build.lock
/public/
/resources/
**/.DS_Store/
.DS_Store/
content/.DS_Store

6
.gitmodules vendored
View File

@@ -1,3 +1,9 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod
[submodule "themes/calligraphy"]
path = themes/calligraphy
url = https://github.com/pacollins/calligraphy.git
[submodule "themes/nomad-tech"]
path = themes/nomad-tech
url = https://github.com/m03315/nomad-tech.git

View File

@@ -1,5 +0,0 @@
+++
date = '2025-11-10T01:34:11-03:00'
draft = true
title = 'Hello'
+++

View File

@@ -0,0 +1,25 @@
---
title: "My First Post"
date: 2025-11-10
draft: false
---
Is this not your fifth post about making a blog?
Well, yes, but let me explain. Over the years of being a human on earth, I've found that I have a large want to produce content, be it music, art, writing, etc... I'm going to stop myself before I end up writing about my thoughts on human nature, all this to say. I want to write, I want it to be frictionless to go from "I want to write about X" to seeing it online. During this time of being a software engineer, I've tried MANY solutions. All of them having their own unique problems / annoyances, which I either knew about before using them, or accidently found out. Here is a short list
1) Doing things myself (NextJS + Strapi): Stupid high development cost / friction / effort.
2) Ghost: Comes with extra features I don't need / paid since I didn't want to host it myself
3) Writing raw HTML and publically hosting it: I don't think I need to get into why this is not a good idea.
As you can see, a lot of solutions have different tradeoffs (That is how it works, after all). I was never really satisfied with any of them, as one would be able to tell by my lack of blogs / content creation schedule. So, what's (hopefully) different this time? Everything. I'll get into the nitty gritty in a later blog post, but as a teaser. I've setup a server box and a storage box, I have gitea, bitwarden, immich, etc... all running, which is allowing me to take full control of everything (digital independence) and set things up exactly how I want to.
My current workflow for writing a blog post is
1) Think of something to write about
2) Write about it in a git repository
2.a) Write the post in all the languages I speak
3) Push
4) done
This workflow was so nice that whilst I was setting up the website, I never ran hugo locally *once*. As I go from something on my laptop -> published online in ~15 seconds. I assume there will be many problems I'll have to face which I haven't ran into (eg: I have 0 idea how code is going to look), but alas, I shall figure out a way forward.
Peace out nerds o7

6
content/pt/_index.md Normal file
View File

@@ -0,0 +1,6 @@
---
title: "Olá"
slug: "hello"
---
Bem-vindo ao meu site.

View File

@@ -1,4 +1,48 @@
baseURL = 'https://example.org/'
baseURL = 'https://caio.wakamatsu.cc'
languageCode = 'en-us'
title = 'My New Hugo Site'
title = "Caio's Corner"
theme = "PaperMod"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
[languages]
[languages.en]
languageName = "English"
weight = 1
title = "Caio's Corner"
[languages.en.params.homeInfoParams]
Title = "Hey, I'm Caio."
Content = "I build things, break them, and write about both."
[languages.pt]
languageName = "Português"
weight = 2
title = "O Cantinho do Caio"
[languages.pt.params.homeInfoParams]
Title = "Oi, sou o Caio."
Content = "Construo coisas, quebro coisas e escrevo sobre isso."
[languages.es]
languageName = "Español"
weight = 3
title = "El Rincón de Caio"
[languages.es.params.homeInfoParams]
Title = "Hola, soy Caio"
Content = "Construyo cosas, las rompo y escribo sobre ellas"
[languages.jp]
languageName = "日本語"
weight = 4
title = "カイオのコーナー"
[languages.jp.params.homeInfoParams]
Title = "やあ、カイオです"
Content = "物を作ったり壊したり、それについて書いたりします"
[languages.fr]
languageName = "Français"
weight = 5
title = "Le Coin de Caio"
[languages.fr.params.homeInfoParams]
Title = "Salut, je suis Caio."
Content = "Je construis des choses, je les casse et jécris à leur sujet."