Hero Image of content
Install the Theme

Installing the theme from scratch.

Prerequisites

  • Download Hugo , version required >= 0.124.0
  • Download Go
  • Download Node.js

Creating a Site

hugo new site [sitename]

cd [sitename]

# Deleting the Themes Directory from the Site
rm -rf themes

Initializing Hugo Modules

hugo mod init github.com/[username]/[sitename]

Importing the Theme Module

Configure the theme in hugo.toml

[module]
[[module.imports]]
  path = 'github.com/mrhelloboy/seven'

Because the theme requires additional configuration parameters, it’s recommended to use the configuration file provided in this example to avoid errors, and then modify it as needed.

For more information on Hugo Modules and their usage, please refer to Hugo Modules

Installing Dependencies and Starting

hugo mod npm pack

npm install

hugo server