kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
867 stars 130 forks source link

instructions do not work for academic theme #696

Closed fkgruber closed 1 year ago

fkgruber commented 1 year ago

I'm trying to upgrade my website to the latest hugo.

I tried the instructions in https://ox-hugo.scripter.co/doc/quick-start/ using the git clone approach and it works with the PaperMod theme.

However if I change the theme to academic using git clone https://github.com/wowchemy/starter-academic.git themes/academic

and the configuration to theme='academic'

then I get:

hugo server --buildDrafts --navigateToChanged
Error: module "github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5" not found; either add it as a Hugo Module or store it in "/Users/fred/Documents/gitRepos/professional_resume_2023/themes".: module does not exist

I'm using

hugo version
hugo v0.109.0+extended darwin/amd64 BuildDate=unknown

What am I missing?

kaushalmodi commented 1 year ago

It looks like the academic theme has to installed as a module.

So you need to make your hugo site a module first. See the "Using Hugo Modules" section in the 4th point on https://ox-hugo.scripter.co/doc/quick-start/.