Setup Hugo dengan PaperMod Theme
Tutorial ini akan membantu kamu membuat blog statis dengan Hugo dan PaperMod theme. Cocok untuk blog personal atau dokumentasi projekt.
Prerequisites
- Hugo v0.120+
- Git
Langkah 1: Install Hugo
# macOS
brew install hugo
# Linux (Ubuntu/Debian)
sudo apt install hugo
# Verifikasi
hugo version
Langkah 2: Buat Project Baru
hugo new site my-blog
cd my-blog
Langkah 3: Tambah PaperMod Theme
git init
git submodule add https://github.com/adityatelange/hugo-PaperMod themes/PaperMod
Langkah 4: Konfigurasi
Buat hugo.toml dengan konfigurasi dasar:
baseURL = "https://example.com/"
languageCode = "id"
title = "My Blog"
theme = "PaperMod"
[params]
description = "Deskripsi blog"
Langkah 5: Buat Konten
hugo new posts/my-first-post.md
Langkah 6: Run Development Server
hugo server -D
Buka http://localhost:1313 untuk melihat hasilnya.
Deployment
Deploy ke Cloudflare Pages atau GitHub Pages:
hugo --minify
Folder public/ siap di-deploy.
#Tutorial #Hugo #Blog