Errors in trying to build a site using exampleSite in academic-folio theme

Very new to hugo: I have been trying to build my site usng the academc-folio theme avalable at: GitHub - rohandebsarkar/academic-folio: DISCONTINUED: Hugo port of the popular Jekyll theme al-folio

I understand this theme is discontinued because the author has gone over to Jekyll (from what I understand) but I am not planning to change my theme much once I can get things going.

Anyway, there is an exampleSite in there, but what I am lost about is how to translate it to my website. (I know how to make this exampleSite work, through make serve and the site does render “fine” but my question is how do I make this work with my site.

Here is what I tried:

  1. create my site using hugo new site my_site
  2. copied academic-folio theme to the themes subfolder, and all the files in assets, config, content and so on from the exampleSite into the my_site folder/directory.
  3. Added theme = ‘academic-folio’ to my automatically created hugo.toml
  4. Used hugo server on the “root directory.

Is this generally the correct thing to have done?

However, I get the following:

Error: command error: failed to load modules: module “ GitHub - FortAwesome/Font-Awesome: The iconic SVG, font, and CSS toolkit ” not found in “/home/aarem/mysite/themes/github.com/FortAwesome/Font-Awesome”; either add it as a Hugo Module or store it in “/home/aarem/mysite/themes”.: module does not exist

  1. I do not understand why this font is a problem here, when the exampleSite run does not show this problem in the sense of why this font is suddenly being asked for while it was not asked for with the exampleSite run.

  2. It appears that the config/_default/config.yaml has a section which says:

    module:
      imports:
    
      - path: github.com/FortAwesome/Font-Awesome
            mounts:
      - source: svgs
        target: assets/svgs/fontawesome
    
    

What do I do here? Are there instructions on this anywhere?

I am sorry I found instructions on how to borrow from exampleSite or in the case of installing(?) fontawesome very difficult to find.

Thanks in advance for any suggestions and help!

To import modules into a project, the project must also be a module.

hugo mod init foo

In the above, foo is typically something like github.com/user/project.

Thnaks! So, in this case, is the fontawesome a module? Or is the exampleSite a module?

The root of your project.

Thanks ! Sorry, I do not understand the lingo here: being new, my root here is my_site (I am only serving locally). I am not sure how to resolve my issue here by “importing a module”.

Starting from scratch…

hugo new site hugo-forum-topic-56709
cd hugo-forum-topic-56709/
git init
git submodule add https://github.com/rohandebsarkar/academic-folio themes/academic-folio
rsync -av --exclude='themes/academic-folio' themes/academic-folio/exampleSite/ .
rm hugo.toml
printf ".hugo_build.lock\nhugo_stats.json\nnode_modules/\npublic/\nresources/\n" > .gitignore
git add -A
git commit -m "Initial commit"
hugo server