Open DarrellTang opened 1 year ago
Hi @DarrellTang. The master branch contains some undocumented changes. We have changed how you use the theme. Now, you have to use Hugo Modules.
Try running
npm install
hugo mod tidy
hugo server -w
Hi. Thanks for the amazing theme. I, too am having a difficult time making this theme run. I was following the quickstart guide but then got stuck when the docs were outdated. I then proceeded to get a new clean repo and try to follow the steps highlighted in the three places here:
Now I feel I'm nowhere.. Do you have any suggestions on what to do? I am unable to get the website to build and I don't have too much experience with these tools.. I already tried running the commands above but still get this error
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:2:7": Could not resolve "bootstrap"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:3:7": Could not resolve "@fortawesome/fontawesome-free/js/all"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/darkmode/darkreader.js:1:54": Could not resolve "darkreader"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/flowchart/mermaid.js:1:20": Could not resolve "mermaid"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/math/katex.js:1:32": Could not resolve "katex/contrib/auto-render"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/syntaxhighlight/hljs.js:1:17": Could not resolve "highlight.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/videoplayer/plyr.js:1:17": Could not resolve "plyr"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/home.js:1:21": Could not resolve "ityped"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/note.js:1:25": Could not resolve "imagesloaded"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:1:17": Could not resolve "fuse.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:2:17": Could not resolve "mark.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/projects.js:1:22": Could not resolve "filterizr"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/publications.js:1:22": Could not resolve "filterizr"
ERROR 2023/03/10 13:37:45 JSBUILD: failed to transform "scripts/application.js" (text/javascript): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:1:7": Could not resolve "popper.js"
ERROR 2023/03/10 13:37:45 TOCSS: failed to transform "styles/application.scss" (text/x-scss): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/styles/application.template.scss:3:1": File to import not found or unreadable: bootstrap/scss/bootstrap.
Hi. Thanks for the amazing theme. I, too am having a difficult time making this theme run. I was following the quickstart guide but then got stuck when the docs were outdated. I then proceeded to get a new clean repo and try to follow the steps highlighted in the three places here:
- git submodule add https://github.com/hugo-toha/toha.git themes/toha.
- https://toha-guides.netlify.app/posts/getting-started/prepare-site/
- https://toha-guides.netlify.app/posts/configuration/site-parameters/
Now I feel I'm nowhere.. Do you have any suggestions on what to do? I am unable to get the website to build and I don't have too much experience with these tools.. I already tried running the commands above but still get this error
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:2:7": Could not resolve "bootstrap" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:3:7": Could not resolve "@fortawesome/fontawesome-free/js/all" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/darkmode/darkreader.js:1:54": Could not resolve "darkreader" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/flowchart/mermaid.js:1:20": Could not resolve "mermaid" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/math/katex.js:1:32": Could not resolve "katex/contrib/auto-render" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/syntaxhighlight/hljs.js:1:17": Could not resolve "highlight.js" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/videoplayer/plyr.js:1:17": Could not resolve "plyr" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/home.js:1:21": Could not resolve "ityped" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/note.js:1:25": Could not resolve "imagesloaded" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:1:17": Could not resolve "fuse.js" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:2:17": Could not resolve "mark.js" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/projects.js:1:22": Could not resolve "filterizr" ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/publications.js:1:22": Could not resolve "filterizr" ERROR 2023/03/10 13:37:45 JSBUILD: failed to transform "scripts/application.js" (text/javascript): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:1:7": Could not resolve "popper.js" ERROR 2023/03/10 13:37:45 TOCSS: failed to transform "styles/application.scss" (text/x-scss): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/styles/application.template.scss:3:1": File to import not found or unreadable: bootstrap/scss/bootstrap.
Same here
Hello, beautiful theme, thanks for all the hard work on it!
Trying to preview the site using
hugo server -w
fails now that the folder at themes/toha is removed in this commit https://github.com/hugo-toha/hugo-toha.github.io/commit/994b971af1de0cf5a9d26b3e2c60453795b25aedIs there a way to preview the site locally now that the submodule has been removed?