Getting Started
Quick start guide for Hugo and hugo-bootstrap-x theme, covering installation, site initialization, and running.
Install Hugo
It is recommended to install the Hugo Extended edition to fully support SCSS/SASS compilation and modern asset pipelines:
macOS (Homebrew)
brew install hugoLinux (Debian / Ubuntu)
sudo apt-get update
sudo apt-get install -y hugoAlternatively, download the latest .deb or prebuilt binary package from Hugo GitHub Releases.
Windows (Chocolatey / Scoop)
choco install hugo-extended
# or
scoop install hugo-extendedVerify your installation:
hugo versionCreate a New Site
Use the hugo new site command to create a new Hugo site skeleton:
hugo new site myblog
cd myblog
git initInstall Theme
Add the hugo-bootstrap-x theme into the themes/ directory. Using Git Submodule is recommended for easier updates:
# Option 1: Git Submodule (Recommended)
git submodule add https://github.com/xiexianbin/hugo-bootstrap-x.git themes/hugo-bootstrap-x
# Option 2: Direct clone
git clone https://github.com/xiexianbin/hugo-bootstrap-x.git themes/hugo-bootstrap-xNext, add the theme to your site configuration file hugo.toml (or config.toml):
theme = "hugo-bootstrap-x"Start Local Server
Run Hugo’s built-in development server from your site root, with the -D flag to render draft posts:
hugo server -DOpen http://localhost:1313/ in your browser to view your site live with automatic hot reloading (LiveReload).
Translations
- Prev Page: Highly available VIPs on OpenStack VMs with VRRP
- Next Page: Working with Lambda layers and extensions in container images
See also
Latest Comments