This repository contains source files for BGW blog.
- Install Hugo Extended
- On macOS:
brew install hugo
- might not install extended version - On Windows:
choco install hugo-extended
- On Linux:
snap install hugo --channel=extended
- We need extended version for SASS support
- Binaries can be downloaded from GitHub
- On macOS:
- Clone this repo.
git clone https://github.com/miroslavpopovic/blog-boardgamerweekly blog-boardgamerweekly
- Clone GitHub Pages repository
blog-boardgamerweekly.github.io
:git clone https://github.com/miroslavpopovic/blog-boardgamerweekly.github.io.git
- Go to
/blog-boardgamerweekly
root:cd blog-boardgamerweekly
- Open the site in editor (i.e. Visual Studio Code):
code .
- Run Hugo server
hugo server -D
- It will watch for changes in files and refresh the browser, including the draft content.
content/
- main site content in markdown, each subfolder is a separate sectionstatic/css/custom.css
- main CSS file overridestatic/images/
- images folderthemes/ananke/
- a git submodule with the theme usedconfig.toml
- main Hugo config file - contains parameters used on pages and partials
- Run
./publish.ps1
script with PowerShell