Yukuro / hugo-theme-shell

Hugo Shell theme : Terminal-like theme with selectable color schemes.
https://hugo-theme-shell-example.vercel.app/
MIT License
327 stars 109 forks source link

Broken build #59

Closed rsharifnasab closed 8 months ago

rsharifnasab commented 8 months ago

Describe the bug hugo is unable to build the project.

To Reproduce

hugo --minify -t hugo-theme-shell

Expected behavior compile correctly

Logs

hugo -t hugo-theme-shell

gives this error:

ERROR render of "page" failed: "/home/roozbeh/proj/rsharifnasab.github.io/themes/hugo-theme-shell/layouts/_default/baseof.html:3:8": execute of template failed: template: _default/single.html:3:8: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/roozbeh/proj/rsharifnasab.github.io/themes/hugo-theme-shell/layouts/partials/head.html:6:7": execute of template failed: template: partials/head.html:6:7: executing "partials/head.html" at <partial "partials/style.html" .>: error calling partial: "/home/roozbeh/proj/rsharifnasab.github.io/themes/hugo-theme-shell/layouts/partials/style.html:32:25": execute of template failed: template: partials/style.html:32:25: executing "partials/style.html" at <$themeData.themes>: can't evaluate field themes in type []interface {}

and

hugo -D

gives this:

Start building sites … 
hugo v0.122.0+extended linux/amd64 BuildDate=unknown

WARN  found no layout file for "html" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

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

Total in 9 ms

Additional context It seems that when i download the the theme, it does not contains the #55 change, and therefore it's broken.

Yukuro commented 8 months ago

I could not reproduce the problem in my environment. Could you please attach the repository where the problem is occurring?

cmahnke commented 8 months ago

@rsharifnasab If you're using the theme as a Git submodule, maybe you need to update the submodule?

rsharifnasab commented 8 months ago

That was something on my side. Sorry for the inconvenience.