From b4fbad79f23a421b0607cb2ae6bedbcb3eaf6241 Mon Sep 17 00:00:00 2001 From: caiowakamatsu Date: Mon, 10 Nov 2025 03:46:19 -0300 Subject: [PATCH] add pt --- content/_index.md | 3 -- content/about.md | 26 ---------- content/about/_index.md | 37 -------------- content/en/_index.md | 6 +++ content/portfolio.md | 7 --- content/portfolio/_index.md | 7 --- content/posts/css-grid-flexbox.md | 40 --------------- content/posts/docker-development-workflow.md | 53 ------------------- content/posts/example-post.md | 16 ------ content/posts/hugo-theme-development.md | 49 ------------------ content/posts/javascript-async-patterns.md | 31 ----------- content/posts/nomad-budget-breakdown.md | 45 ---------------- content/posts/nomad-life-bali.md | 31 ----------- content/posts/nomad-visa-guide.md | 26 ---------- content/posts/react-hooks-guide.md | 48 ----------------- content/posts/remote-work-tools-2024.md | 51 ------------------ content/posts/thailand-coworking-spaces.md | 33 ------------ content/posts/typescript-best-practices.md | 54 -------------------- content/pt/_index.md | 6 +++ content/social.md | 12 ----- content/social/_index.md | 8 --- content/travel.md | 7 --- content/travel/_index.md | 7 --- hugo.toml | 8 ++- 24 files changed, 18 insertions(+), 593 deletions(-) delete mode 100644 content/_index.md delete mode 100644 content/about.md delete mode 100644 content/about/_index.md create mode 100644 content/en/_index.md delete mode 100644 content/portfolio.md delete mode 100644 content/portfolio/_index.md delete mode 100644 content/posts/css-grid-flexbox.md delete mode 100644 content/posts/docker-development-workflow.md delete mode 100644 content/posts/example-post.md delete mode 100644 content/posts/hugo-theme-development.md delete mode 100644 content/posts/javascript-async-patterns.md delete mode 100644 content/posts/nomad-budget-breakdown.md delete mode 100644 content/posts/nomad-life-bali.md delete mode 100644 content/posts/nomad-visa-guide.md delete mode 100644 content/posts/react-hooks-guide.md delete mode 100644 content/posts/remote-work-tools-2024.md delete mode 100644 content/posts/thailand-coworking-spaces.md delete mode 100644 content/posts/typescript-best-practices.md create mode 100644 content/pt/_index.md delete mode 100644 content/social.md delete mode 100644 content/social/_index.md delete mode 100644 content/travel.md delete mode 100644 content/travel/_index.md diff --git a/content/_index.md b/content/_index.md deleted file mode 100644 index 80c8a80..0000000 --- a/content/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: "Home" ---- \ No newline at end of file diff --git a/content/about.md b/content/about.md deleted file mode 100644 index 3639c9b..0000000 --- a/content/about.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "About Me" -description: "Digital nomad, tech enthusiast, and life explorer" ---- - -# About Me - -Hi! I'm a digital nomad and tech professional passionate about exploring the world while building amazing digital experiences. - -## My Journey - -Started my nomad journey in 2024, combining my love for technology with wanderlust. I've been exploring different cultures, working with amazing teams remotely, and documenting my experiences along the way. - -## What I Do - -- **Frontend Development**: Building modern, responsive web applications -- **Content Creation**: Sharing insights about nomad life and tech trends -- **Community Building**: Connecting with fellow nomads and tech enthusiasts - -## Current Focus - -Currently based in Bali, working on exciting projects while enjoying the perfect blend of work and surf lifestyle. - -## Let's Connect - -Feel free to reach out if you want to collaborate, share nomad tips, or just chat about tech and travel! \ No newline at end of file diff --git a/content/about/_index.md b/content/about/_index.md deleted file mode 100644 index d71c883..0000000 --- a/content/about/_index.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: "About Me" -description: "Full-stack developer, digital nomad, and tech enthusiast" ---- - -# 关于我 - -Hi, I'm **m03315** - a digital nomad, tech explorer, and life recorder. - -## My Journey - -I've been working remotely for several years, traveling the world while building technology solutions. My passion lies in exploring new technologies, sharing knowledge, and helping others embrace the digital nomad lifestyle. - -## What I Do - -- **Tech Development**: Building web applications and mobile solutions -- **Content Creation**: Sharing insights through blogs and videos -- **Community Building**: Connecting with fellow nomads and tech enthusiasts - -## My Mission - -To bridge the gap between technology and lifestyle, showing how digital tools can enable freedom and creativity in our modern world. - -## Tech Stack - -```bash -$ whoami -m03315 - -$ cat skills.json -{ - "languages": ["JavaScript", "Python", "Go"], - "frameworks": ["React", "Hugo", "Node.js"], - "tools": ["Docker", "Git", "VS Code"], - "lifestyle": "Digital Nomad" -} -``` \ No newline at end of file diff --git a/content/en/_index.md b/content/en/_index.md new file mode 100644 index 0000000..3340f36 --- /dev/null +++ b/content/en/_index.md @@ -0,0 +1,6 @@ +--- +title: "Hello" +slug: "hello" +--- +Welcome to my site. + diff --git a/content/portfolio.md b/content/portfolio.md deleted file mode 100644 index 12f1ebe..0000000 --- a/content/portfolio.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Portfolio" -description: "Showcasing my projects and achievements" -layout: "portfolio" ---- - -A collection of projects I've built during my journey as a digital nomad and tech professional. \ No newline at end of file diff --git a/content/portfolio/_index.md b/content/portfolio/_index.md deleted file mode 100644 index dd1233b..0000000 --- a/content/portfolio/_index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "作品集" -description: "展示我的项目和成就" -layout: "portfolio" ---- - -在我作为数字游民和技术专家的旅程中构建的项目集合。 \ No newline at end of file diff --git a/content/posts/css-grid-flexbox.md b/content/posts/css-grid-flexbox.md deleted file mode 100644 index 16ee806..0000000 --- a/content/posts/css-grid-flexbox.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: "CSS Grid vs Flexbox: When to Use What" -date: 2024-08-03 -categories: ["tech", "tutorial"] -tags: ["css", "layout", "frontend"] ---- - -# CSS Grid vs Flexbox: When to Use What - -Understanding the differences between CSS Grid and Flexbox for modern layouts. - -## Use Flexbox For: -- One-dimensional layouts (rows OR columns) -- Component-level design -- Centering content -- Navigation bars - -## Use CSS Grid For: -- Two-dimensional layouts (rows AND columns) -- Page-level design -- Complex layouts -- Card grids - -```css -/* Flexbox for navigation */ -.nav { - display: flex; - justify-content: space-between; - align-items: center; -} - -/* Grid for main layout */ -.layout { - display: grid; - grid-template-columns: 1fr 3fr 1fr; - grid-template-rows: auto 1fr auto; -} -``` - -Both are powerful tools - use them together! \ No newline at end of file diff --git a/content/posts/docker-development-workflow.md b/content/posts/docker-development-workflow.md deleted file mode 100644 index 95738b3..0000000 --- a/content/posts/docker-development-workflow.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: "Docker Development Workflow for Hugo Themes" -date: 2024-07-28 -categories: ["tech", "tutorial"] -tags: ["docker", "hugo", "development", "workflow"] ---- - -# Docker Development Workflow for Hugo Themes - -Setting up a consistent development environment across different machines is crucial for theme development. Here's my Docker-based workflow. - -## The Setup - -```dockerfile -FROM hugomods/hugo:exts-0.120.4 -WORKDIR /src -COPY . /src/themes/nomad-tech/ -CMD ["hugo", "server", "--bind", "0.0.0.0", "--buildDrafts"] -``` - -## Docker Compose Configuration - -```yaml -services: - hugo: - build: . - volumes: - - "./exampleSite:/src" - ports: - - "1313:1313" -``` - -## Benefits - -- **Consistency**: Same Hugo version everywhere -- **Security**: Pinned, official images only -- **Isolation**: No local Hugo installation needed -- **Portability**: Works on any machine with Docker - -## Development Commands - -```bash -# Start development server -docker-compose up - -# Build for production -docker-compose run hugo hugo --minify - -# Clean up -docker-compose down -``` - -This workflow has saved me countless hours of environment setup! \ No newline at end of file diff --git a/content/posts/example-post.md b/content/posts/example-post.md deleted file mode 100644 index 98362f4..0000000 --- a/content/posts/example-post.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: "Welcome to Nomad Tech Theme" -date: 2024-01-01 -categories: ["Tech", "Hugo", "Themes"] ---- - -This is an example post to demonstrate the Nomad Tech Theme features. - -## Features - -- Modern design -- Multilingual support -- Portfolio integration -- Social media links - -Customize this theme by editing your `hugo.toml` configuration file. \ No newline at end of file diff --git a/content/posts/hugo-theme-development.md b/content/posts/hugo-theme-development.md deleted file mode 100644 index da60564..0000000 --- a/content/posts/hugo-theme-development.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: "Building a Hugo Theme from Scratch" -date: 2024-08-10 -categories: ["tech", "tutorial"] -tags: ["hugo", "web-development", "static-sites"] ---- - -# Building a Hugo Theme from Scratch - -Creating a custom Hugo theme has been an exciting journey! Here's what I learned while building the nomad-tech theme. - -## Key Concepts - -Hugo's template lookup order is crucial for theme development: - -``` -layouts/ -├── _default/ -│ ├── baseof.html -│ ├── list.html -│ └── single.html -├── partials/ -└── section-name/ - └── list.html -``` - -## Hugo Pipes for Assets - -Modern Hugo themes should use Hugo Pipes for asset processing: - -```go -{{ $scss := resources.Get "scss/main.scss" }} -{{ $css := $scss | resources.ToCSS | resources.Minify | resources.Fingerprint }} -``` - -## Multilingual Support - -Hugo's i18n system makes multilingual themes straightforward: - -```yaml -# i18n/en.toml -[home] -other = "Home" - -[about] -other = "About" -``` - -Building themes teaches you so much about Hugo's internals! \ No newline at end of file diff --git a/content/posts/javascript-async-patterns.md b/content/posts/javascript-async-patterns.md deleted file mode 100644 index 4cd91a0..0000000 --- a/content/posts/javascript-async-patterns.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Modern JavaScript Async Patterns" -date: 2024-08-12 -categories: ["tech", "tutorial"] -tags: ["javascript", "async", "promises"] ---- - -# Modern JavaScript Async Patterns - -Exploring the evolution from callbacks to async/await and beyond. - -## Promise Chains vs Async/Await - -```javascript -// Promise chains -fetchUser(id) - .then(user => fetchPosts(user.id)) - .then(posts => renderPosts(posts)) - .catch(handleError); - -// Async/await -try { - const user = await fetchUser(id); - const posts = await fetchPosts(user.id); - renderPosts(posts); -} catch (error) { - handleError(error); -} -``` - -The async/await syntax makes asynchronous code much more readable! \ No newline at end of file diff --git a/content/posts/nomad-budget-breakdown.md b/content/posts/nomad-budget-breakdown.md deleted file mode 100644 index ff5cbda..0000000 --- a/content/posts/nomad-budget-breakdown.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: "Digital Nomad Budget Breakdown: $2000/Month" -date: 2024-07-20 -categories: ["nomad", "lifestyle"] -tags: ["budget", "finance", "planning"] ---- - -# Digital Nomad Budget Breakdown: $2000/Month - -How I manage to live comfortably on $2000/month as a digital nomad. - -## Monthly Expenses - -### Accommodation ($600-800) -- Airbnb/coliving spaces -- 1-month stays for better rates -- Shared apartments in nomad hubs - -### Food ($300-400) -- Local restaurants: $3-8/meal -- Groceries: $100/month -- Occasional splurges: $50 - -### Transportation ($200-300) -- Flights: $150/month average -- Local transport: $50 -- Scooter rental: $100 - -### Work Setup ($100-150) -- Coworking spaces: $80 -- Mobile data: $20 -- Coffee shops: $50 - -### Entertainment ($200-250) -- Activities and tours -- Gym memberships -- Social events - -## Money-Saving Tips -1. Cook at home 3-4 times/week -2. Use local transport -3. Book flights in advance -4. Choose emerging destinations - -Living the nomad dream doesn't have to break the bank! \ No newline at end of file diff --git a/content/posts/nomad-life-bali.md b/content/posts/nomad-life-bali.md deleted file mode 100644 index 7cd82ef..0000000 --- a/content/posts/nomad-life-bali.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Digital Nomad Life in Bali: 3 Months In" -date: 2024-08-05 -categories: ["nomad", "lifestyle"] -tags: ["bali", "remote-work", "coworking"] ---- - -# Digital Nomad Life in Bali: 3 Months In - -Three months into my Bali adventure, and I'm still amazed by how this island balances productivity with paradise. - -## The Good - -- **Coworking Scene**: Dojo Bali and Outpost are incredible -- **Internet**: Surprisingly reliable 50+ Mbps in most areas -- **Community**: Amazing nomad community, especially in Canggu -- **Cost**: $800-1200/month for a comfortable lifestyle - -## The Challenges - -- **Rainy Season**: Coding during tropical storms is... interesting -- **Traffic**: Scooter rides to meetings can be adventures -- **Time Zones**: Client calls at 2 AM are rough - -## Productivity Tips - -1. **Morning Routine**: Surf at sunrise, code by 9 AM -2. **Coworking**: Don't work from your villa all the time -3. **Backup Internet**: Always have a mobile hotspot ready - -The blend of tech work and tropical living is addictive. Already planning my next destination! \ No newline at end of file diff --git a/content/posts/nomad-visa-guide.md b/content/posts/nomad-visa-guide.md deleted file mode 100644 index d29c848..0000000 --- a/content/posts/nomad-visa-guide.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "Digital Nomad Visa Guide 2024" -date: 2024-08-08 -categories: ["nomad", "lifestyle"] -tags: ["visa", "travel", "remote-work"] ---- - -# Digital Nomad Visa Guide 2024 - -Complete guide to digital nomad visas and remote work permits. - -## Top Nomad-Friendly Countries - -- **Portugal**: D7 Visa (1-2 years) -- **Estonia**: Digital Nomad Visa (1 year) -- **Barbados**: Welcome Stamp (1 year) -- **Dubai**: Virtual Working Program (1 year) - -## Application Tips - -1. **Income Requirements**: Usually $2000-3500/month -2. **Health Insurance**: Mandatory for most programs -3. **Processing Time**: 2-8 weeks typically -4. **Remote Work Proof**: Employment letter or business registration - -Planning ahead is key for a smooth nomad journey! \ No newline at end of file diff --git a/content/posts/react-hooks-guide.md b/content/posts/react-hooks-guide.md deleted file mode 100644 index ddd4b3c..0000000 --- a/content/posts/react-hooks-guide.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: "React Hooks Complete Guide" -date: 2024-07-25 -categories: ["tech", "tutorial"] -tags: ["react", "hooks", "frontend"] ---- - -# React Hooks Complete Guide - -Master React Hooks with practical examples and best practices. - -## Essential Hooks - -### useState -```jsx -const [count, setCount] = useState(0); -``` - -### useEffect -```jsx -useEffect(() => { - document.title = `Count: ${count}`; -}, [count]); -``` - -### useContext -```jsx -const theme = useContext(ThemeContext); -``` - -## Custom Hooks - -```jsx -function useLocalStorage(key, initialValue) { - const [value, setValue] = useState(() => { - return localStorage.getItem(key) || initialValue; - }); - - const setStoredValue = (newValue) => { - setValue(newValue); - localStorage.setItem(key, newValue); - }; - - return [value, setStoredValue]; -} -``` - -Hooks make React development so much cleaner! \ No newline at end of file diff --git a/content/posts/remote-work-tools-2024.md b/content/posts/remote-work-tools-2024.md deleted file mode 100644 index 0e12320..0000000 --- a/content/posts/remote-work-tools-2024.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: "Essential Remote Work Tools for Developers in 2024" -date: 2024-07-15 -categories: ["tech", "nomad"] -tags: ["remote-work", "tools", "productivity"] ---- - -# Essential Remote Work Tools for Developers in 2024 - -After working remotely from 15+ countries, here are the tools that keep me productive anywhere. - -## Communication & Collaboration - -- **Slack/Discord**: Team communication -- **Zoom/Meet**: Video calls with good mobile data usage -- **Notion**: Documentation and project management -- **Figma**: Design collaboration - -## Development Environment - -- **VS Code**: With Settings Sync enabled -- **GitHub Codespaces**: When local setup isn't possible -- **Docker**: Consistent environments everywhere -- **Tailscale**: Secure access to home lab - -## Connectivity & Backup - -- **Speedtest CLI**: `speedtest-cli` for quick connection checks -- **Multiple ISPs**: Always have 2+ internet sources -- **VPN**: Essential for accessing geo-restricted services -- **Power Bank**: 20,000mAh minimum for long coding sessions - -## Productivity Hacks - -```bash -# My daily setup script -#!/bin/bash -speedtest-cli -git status -docker-compose up -d -code . -``` - -## Location-Specific Tips - -- **Thailand**: AIS has the best coverage -- **Indonesia**: Telkomsel for reliability -- **Portugal**: MEO fiber is excellent -- **Mexico**: Telmex for stable connections - -The key is redundancy - always have backups for your backups! \ No newline at end of file diff --git a/content/posts/thailand-coworking-spaces.md b/content/posts/thailand-coworking-spaces.md deleted file mode 100644 index 20810a1..0000000 --- a/content/posts/thailand-coworking-spaces.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Best Coworking Spaces in Thailand" -date: 2024-07-30 -categories: ["nomad", "lifestyle"] -tags: ["thailand", "coworking", "productivity"] ---- - -# Best Coworking Spaces in Thailand - -My experience working from Thailand's top coworking spaces. - -## Bangkok -- **HUBBA-TO**: Premium space in Thonglor -- **Launchpad**: Great community, multiple locations -- **The Hive**: Professional environment - -## Chiang Mai -- **CAMP**: The nomad headquarters -- **Punspace**: Reliable and affordable -- **Maya Lifestyle**: Modern facilities - -## Phuket -- **Andaman Coworking**: Beach vibes -- **Outpost**: International community - -## What to Look For -- Stable internet (50+ Mbps) -- Comfortable seating -- Meeting rooms -- Coffee quality (important!) -- Community events - -Thailand's coworking scene is world-class! \ No newline at end of file diff --git a/content/posts/typescript-best-practices.md b/content/posts/typescript-best-practices.md deleted file mode 100644 index a386781..0000000 --- a/content/posts/typescript-best-practices.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: "TypeScript Best Practices 2024" -date: 2024-07-18 -categories: ["tech", "tutorial"] -tags: ["typescript", "javascript", "best-practices"] ---- - -# TypeScript Best Practices 2024 - -Essential TypeScript patterns and practices for better code quality. - -## Type Definitions - -```typescript -// Use interfaces for object shapes -interface User { - id: string; - name: string; - email: string; - createdAt: Date; -} - -// Use type aliases for unions -type Status = 'loading' | 'success' | 'error'; - -// Generic constraints -interface Repository { - findById(id: string): Promise; - save(entity: T): Promise; -} -``` - -## Utility Types - -```typescript -// Partial for updates -function updateUser(id: string, updates: Partial) { - // Implementation -} - -// Pick for specific fields -type UserSummary = Pick; - -// Omit for exclusions -type CreateUser = Omit; -``` - -## Best Practices -1. Enable strict mode -2. Use unknown instead of any -3. Prefer type assertions over type casting -4. Use const assertions for immutable data - -TypeScript makes JavaScript development so much safer! \ No newline at end of file diff --git a/content/pt/_index.md b/content/pt/_index.md new file mode 100644 index 0000000..2c0a1ce --- /dev/null +++ b/content/pt/_index.md @@ -0,0 +1,6 @@ +--- +title: "Olá" +slug: "hello" +--- +Bem-vindo ao meu site. + diff --git a/content/social.md b/content/social.md deleted file mode 100644 index 1dd0368..0000000 --- a/content/social.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: "Social Media" -description: "Connect with me across different platforms" ---- - -# Follow My Journey - -Stay updated with my latest adventures, tech insights, and nomad life experiences across different social media platforms. - -## Where to Find Me - -Connect with me on various platforms where I share different aspects of my journey - from tech tutorials to travel vlogs and daily life updates. \ No newline at end of file diff --git a/content/social/_index.md b/content/social/_index.md deleted file mode 100644 index 9fd1a46..0000000 --- a/content/social/_index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "社交媒体" -description: "在不同平台上与我联系" ---- - -# 关注我的旅程 - -通过不同的社交媒体平台了解我的最新冒险、技术见解和数字游民生活体验。 \ No newline at end of file diff --git a/content/travel.md b/content/travel.md deleted file mode 100644 index 479966f..0000000 --- a/content/travel.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Travel Timeline" -description: "My digital nomad journey around the world" -layout: "travel" ---- - -Follow my adventures as a digital nomad, exploring different cities and cultures while building amazing projects. \ No newline at end of file diff --git a/content/travel/_index.md b/content/travel/_index.md deleted file mode 100644 index 0136921..0000000 --- a/content/travel/_index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "旅行时间线" -description: "我的数字游民环球之旅" -layout: "travel" ---- - -跟随我作为数字游民的冒险,在构建令人惊叹的项目的同时探索不同的城市和文化。 \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 47a66c6..8ab26ee 100644 --- a/hugo.toml +++ b/hugo.toml @@ -4,9 +4,13 @@ title = "Caio's Corner" theme = "PaperMod" defaultContentLanguage = "en" +defaultContentLanguageInSubdir = true [languages] [languages.en] - weight = 1 languageName = "English" - contentDir = "content/en" + weight = 1 + + [languages.pt] + languageName = "Português" + weight = 2