Skip to content

Basic setup

Ram Iyer edited this page Oct 3, 2020 · 2 revisions

Basic setup

The basic setup is the same as that of any Hugo theme.

Installation

1. Install the theme

If your site is also under version control using git, the easiest way to install this theme is to add it as a submodule. If you have not created a git repo for your project yet, you need to run git init beforehand. Inside the folder of your Hugo site, run the following command.

git submodule add https://github.com/theramiyer/typographical-hugo.git themes/typographical

Alternatively, you can clone the theme into your project.

git clone https://github.com/theramiyer/typographical-hugo.git themes/typographical

2. Configure Hugo

Add the following line to config.toml to tell Hugo to use the theme.

theme = "typographical"

Alternatively, you can tell Hugo to use the theme with the server command.

hugo server -t typographical

Additional information

For more information, read the official setup guide of Hugo.

Update the theme

If you have installed the theme as a git submodule, you can update the theme by issuing the following command inside your project folder.

git submodule update --remote --rebase

If you have cloned the theme, you can run git pull inside the theme folder.