curtiscde / hugo-theme-massively

Massively theme for Hugo static site generator
https://hugo-theme-massively.netlify.app
Other
155 stars 138 forks source link

Module "massively" is not compatible with this Hugo version #125

Open DDecoene opened 1 year ago

DDecoene commented 1 year ago

I followed the Quick start guide for Hugo but when I start the server I get this error:

✗ hugo server -D                  
WARN 2023/02/02 20:46:38 Module "massively" is not compatible with this Hugo version; run "hugo mod graph" for more information.
Start building sites … 
hugo v0.110.0+extended darwin/arm64 BuildDate=unknown
WARN 2023/02/02 20:46:38 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/02/02 20:46:38 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/02/02 20:46:38 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN  
-------------------+-----
  Pages            |  6  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 18  
  Processed images |  0  
  Aliases          |  1  
  Sitemaps         |  1  
  Cleaned          |  0  

Built in 71 ms
Watching for changes in /Users/D/Documents/V-site/{archetypes,assets,content,data,layouts,static,themes}
Watching for config changes in /Users/D/Documents/V-site/config.toml, /Users/D/Documents/V-site/themes/massively/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

In the guide I replaced 'ananke' with 'massively' and the github link with https://github.com/curtiscde/hugo-theme-massively.git

as per suggestion in the error, hugo mod graph returns:

(base) ➜  V-site git:(main) ✗ hugo mod graph
WARN 2023/02/02 20:56:15 Module "massively" is not compatible with this Hugo version; run "hugo mod graph" for more information.
project massively
(base) ➜  V-site git:(main) ✗ 

It does run, but not as it should:

Screenshot 2023-02-02 at 21 03 18

What am I doing wrong?

curtiscde commented 1 year ago

Hi @DDecoene the current max Hugo version supported by this theme is v0.105.0.

I have just raised a PR to upgrade this to v1.110.0 and the e2e tests for this version started failing: #128.

I will see if I can find out why this theme is not compatible with the latest Hugo version.

curtiscde commented 1 year ago

@DDecoene I have resolved the issue with the v1.110.0, but I don't think the version is your problem.


In the guide I replaced 'ananke' with 'massively'

Try again, but replace 'ananke' with 'hugo-theme-massively' instead. I think this will resolve your issue:

hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/curtiscde/hugo-theme-massively themes/hugo-theme-massively
echo "theme = 'hugo-theme-massively'" >> config.toml
hugo server

Please give it a try, and let us know how you get on 🙂

DDecoene commented 1 year ago

I followed your steps in a new folder and did not get any errors. But after running hugo server and navigating to it in chrome, I get this:

Screenshot 2023-02-27 at 00 37 47

Which does not look like it was intended to look?

Can I provide you with more information to help track down the problem?

curtiscde commented 1 year ago

I think this is because your site is currently missing any data or configuration.

I recommend copying over the contents of the exampleSite, and then editing as you wish from there:

https://github.com/curtiscde/hugo-theme-massively/tree/master/exampleSite