Just open index.html in your browser:
# Option 1: Double-click index.html in file explorer
# Option 2: From terminal
open index.html # macOS
xdg-open index.html # Linux
start index.html # WindowsFeatures:
- ✅ Works offline
- ✅ No build tools needed
- ✅ Supports language switching (EN/中文)
- ✅ Fully responsive
./preview.shThen open http://localhost:8000
macOS:
brew install hugoLinux:
# Ubuntu/Debian
sudo apt install hugo
# Fedora
sudo dnf install hugo
# Or download from: https://github.com/gohugoio/hugo/releasesWindows:
choco install hugo-extended
# or
scoop install hugo-extended# Run from smartethnet.github.io directory
./dev.shServer will start at:
- English: http://localhost:1313/
- Chinese: http://localhost:1313/zh/
./build.shOutput will be in public/ directory.
# Build
./build.sh
# Deploy
cd public
git init
git add .
git commit -m "Deploy website"
git push -f git@github.com:smartethnet/rustun.git main:gh-pagesEnable GitHub Pages in repository settings → Pages → Source: gh-pages.
See DEPLOY.md for detailed instructions on:
- Netlify
- Vercel
- Cloudflare Pages
- Self-hosted options
Edit hugo.toml:
[params]
version = '0.0.1'Edit themes/rustun/static/css/style.css:
:root {
--primary-color: #ff6b35;
--secondary-color: #004e89;
}- English:
content/en/_index.md - Chinese:
content/zh/_index.md - Layout:
themes/rustun/layouts/index.html
smartethnet.github.io/
├── index.html # Static version (no build required)
├── hugo.toml # Hugo configuration
├── themes/
│ └── rustun/
│ ├── layouts/ # HTML templates
│ └── static/ # CSS, JS, assets
├── content/ # Markdown content
├── preview.sh # Preview script
├── dev.sh # Hugo dev server
└── build.sh # Build script
./preview.sh- Preview static HTML version./dev.sh- Hugo development server./build.sh- Build production site
- No Hugo? Just use
index.html- it works perfectly! - Want live reload? Use
./dev.shwith Hugo - Ready to deploy? See DEPLOY.md
- Need help? Check README.md or open an issue
- 🌍 Bilingual - English & Chinese
- 📱 Responsive - Works on all devices
- ⚡ Fast - Lightweight and optimized
- 🎨 Modern - Clean, professional design
- 🚀 Easy Deploy - Multiple hosting options