Skip to main content

Migrate Hugo From PaperMod Theme to PaperModX

·1 min

Introduction
#

I’ve just switched my Hugo theme from PaperMod to PaperModX for the features listed on their repository. The steps to do so are pretty straightforward and listed below.

Migration Steps
#

First, add the theme as a sub-module.

git submodule add https://github.com/reorx/hugo-PaperModX.git themes/PaperModX

Then, change the Hugo theme to PaperModX.

sed -i '' 's/^theme: PaperMod$/theme: PaperModX/' hugo.yaml

Finally, delete the now unused PaperMod sub-module.

git rm themes/PaperMod
Florian Schäfer
Author
Florian Schäfer
Welcome to my website where you can read my blog or learn something about me.