Installation

Instructions to install the HB start theme.

Prerequisites

Read more on prerequisites.

Clone the Repository

1git clone --depth 1 https://github.com/hbstack/theme-start

Copy the Example Site

1cp -r theme-start/exampleSite ./start-page

Change Working Directory

1cd start-page

Reinitializing the Site

1rm go.mod go.sum config/_default/module.yaml
2hugo mod init [MODULE_PATH]

The [MODULE_PATH] is the identifier of your site, which usually the repository URL, i.e. example.com/user/repo.

Import the Theme and Search Engines

config/_default/module.toml

1[[imports]]
2  path = 'github.com/hbstack/theme-start'
3[[imports]]
4  path = 'github.com/hbstack/theme-start/engines/google'
5[[imports]]
6  path = 'github.com/hbstack/theme-start/engines/bing'

config/_default/module.yaml

1imports:
2- path: github.com/hbstack/theme-start
3- path: github.com/hbstack/theme-start/engines/google
4- path: github.com/hbstack/theme-start/engines/bing

config/_default/module.json

 1{
 2   "imports": [
 3      {
 4         "path": "github.com/hbstack/theme-start"
 5      },
 6      {
 7         "path": "github.com/hbstack/theme-start/engines/google"
 8      },
 9      {
10         "path": "github.com/hbstack/theme-start/engines/bing"
11      }
12   ]
13}

Install Dependencies

1npm ci

Start Hugo Server

1hugo server

Please restart the Hugo server if the first run fails.

razonyang
Saturday, December 21, 2024 Friday, September 15, 2023