Getting started from scratch with HB cards theme to build your fast, responsive and modular static websites.
We offers an example site for getting started with this theme.
16
or laterRead more on prerequisites.
1git clone --depth 1 https://github.com/hbstack/theme-cards
1cp -r theme-cards/exampleSite mysite
1cd mysite
go.mod
sed
command to edit the file, please feel free to open and edit the go.mod
with your favorite editor.The module path is the identifier of your site, which typically is your repo URL, take github.com/user/repo
as an example, you’ll need to replace the module github.com/hbstack/theme-cards/exampleSite
with module github.com/user/repo
.
1sed -i '1s/.*/module github.com\/user\/repo/' go.mod
replace
DirectiveTo build the site successfully, you’ll need to delete the internal used replace
directive: replace github.com/hbstack/theme-cards => ../
.
1sed -i '/^replace/d' go.mod
1npm ci
A Hugo module proxy is required when the default proxy isn’t accessible from your location, i.e. China.
1npm run dev
baseURL
, giscus.*
and so on.