Skip to content

Theme Customization Guide

This document explains how to modify and customize the Hugo Narrow theme.

Using Git Submodules

When you add the theme using git submodule, copy the theme files you want to modify to the same path in your site's root directory and define your modifications there.

With this method, you cannot commit changes to GitHub.

If you want to save your modifications to a GitHub repository, you can fork the theme and then replace the git submodule address with your repository address.

Direct Download Method

When you directly download the theme files to your site directory, you can modify the theme files directly. The drawback is that each update requires manual comparison of theme changes, making upgrades difficult.