Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to render template from exampleSite #104

Open
pichouk opened this issue Oct 7, 2023 · 7 comments
Open

Unable to render template from exampleSite #104

pichouk opened this issue Oct 7, 2023 · 7 comments

Comments

@pichouk
Copy link

pichouk commented Oct 7, 2023

Hi,

I'm trying to setup a website using this theme, but I constantly have a can't evaluate field Site in type *page.siteWrapper error. After a few experiments, I decided to try to use the example site provided, to debug where I'm wrong. But it seems that even the example site have the same issue. I don't know what to do, I'm new to Hugo to be honest.

I'm using Hugo 0.119.0 on Debian Linux 12.1. Steps to reproduce :

$ git clone [email protected]:eddiewebb/hugo-resume.git                   
$ cd hugo-resume/exampleSite
$ hugo -t hugo-resume --themesDir ../.. server
Watching for changes in /tmp/f/hugo-resume/{archetypes,data,exampleSite,i18n,layouts,static}
Watching for config changes in /tmp/f/hugo-resume/exampleSite/config.toml
Start building sites … 
hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e linux/amd64 BuildDate=2023-09-24T15:20:17Z VendorInfo=gohugoio

Built in 57 ms
Error: error building site: render: failed to render pages: render of "home" failed: execute of template failed: template: index.html:19:12: executing "main" at <partial (printf "portfolio/%s" .) $.Site>: error calling partial: "/tmp/f/hugo-resume/layouts/partials/portfolio/skills.html:4:14": execute of template failed: template: partials/portfolio/skills.html:4:14: executing "partials/portfolio/skills.html" at <$.Site.Data.skills>: can't evaluate field Site in type *page.siteWrapper

Thanks a lot for your help :)

@admatt01
Copy link

I have the same issue. Also using 0.119.0
Think it might be an issue with forward compatibility? Very frustrating as I really like this template!

@pichouk
Copy link
Author

pichouk commented Oct 16, 2023

Yeah me too, I cannot update my online resume so I cannot search for a new job 🤣

But you might be right, maybe I should try with older versions of Hugo if it's a compatibility issue.

@admatt01
Copy link

ok I uninstalled 0.119.0 and installed 0.78.0 and the error has gone! Much more progress now.
Haven't done much else and only tested a local render. Netlify should support it using Environment Variables

image

@pichouk
Copy link
Author

pichouk commented Oct 16, 2023

After a few try, I found that the latest Hugo version working with this theme is 0.111.3. So version 0.112.0 introduced a change that is the cause of this error.

@admatt01
Copy link

After a few try, I found that the latest Hugo version working with this theme is 0.111.3. So version 0.112.0 introduced a change that is the cause of this error.

Great. Always good to run the latest version possible I think.

@py563
Copy link
Contributor

py563 commented Nov 23, 2023

ok I uninstalled 0.119.0 and installed 0.78.0 and the error has gone! Much more progress now. Haven't done much else and only tested a local render. Netlify should support it using Environment Variables

image

can you see blogs listed in home page here with that particular hugo version

@py563
Copy link
Contributor

py563 commented Nov 23, 2023

After a few try, I found that the latest Hugo version working with this theme is 0.111.3. So version 0.112.0 introduced a change that is the cause of this error.

@pichouk check #105 pull request. hi @eddiewebb can you please merge that pull request when you get a chance

sarapiscitelli added a commit to sarapiscitelli/hugo-resume that referenced this issue Jan 5, 2024
- Customized experience, education and skills sections (mostly adding new line capability)
adamingas added a commit to adamingas/hugo-resume that referenced this issue Jul 13, 2024
hantsaniala added a commit to hantsaniala/hugo-resume that referenced this issue Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants