Compare commits
32 Commits
59b0d11dd2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9981b573f3 | |||
| 16382825be | |||
| 3391a18da7 | |||
| dbd9b9c833 | |||
| f6817eb953 | |||
| b4fbad79f2 | |||
| f264e2ce6f | |||
| 4e5d468f7b | |||
| 655cd841aa | |||
| 1c71f35e1d | |||
| 6c6cbc6881 | |||
| a975b3d2d0 | |||
| 4e056ba410 | |||
| 6c8e143bea | |||
| ce6eee1514 | |||
| 760ca4c70b | |||
| 12de9f6186 | |||
| 6b76c3044f | |||
| 1dc2d68eff | |||
| ff4d896917 | |||
| a7d6be5ed9 | |||
| 02fea3acbf | |||
| a6ecb14763 | |||
| 851c54f335 | |||
| 99f2e4c2ef | |||
| 0955fcd348 | |||
| bba85939c9 | |||
| 8643c3c6fd | |||
| 2a8feb5839 | |||
| dc190bb251 | |||
| 7d05260276 | |||
| 5222ba5485 |
@@ -6,20 +6,26 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
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 /root/.ssh
|
||||
echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||
chmod 600 /root/.ssh/id_ed25519
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,6 @@
|
||||
.hugo_build.lock
|
||||
/public/
|
||||
/resources/
|
||||
**/.DS_Store/
|
||||
.DS_Store/
|
||||
content/.DS_Store
|
||||
|
||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -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
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
+++
|
||||
date = '2025-11-10T01:34:11-03:00'
|
||||
draft = true
|
||||
title = 'Hello'
|
||||
+++
|
||||
25
content/en/posts/my-first-post.md
Normal file
25
content/en/posts/my-first-post.md
Normal 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
6
content/pt/_index.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "Olá"
|
||||
slug: "hello"
|
||||
---
|
||||
Bem-vindo ao meu site.
|
||||
|
||||
48
hugo.toml
48
hugo.toml
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user