Closed SamGreenwood1 closed 1 year ago
@SamGreenwood1 - Some quick verification questions:
The majority of issues where I've seen this come up relate to those two (particularly that last one, given it was unable to read the bootstrap/functions component, so hints at a dependency issue)
Just saw this:
I seem to have somehow inadvertently fixed those errors, now I get this one:
WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.
WARN 2023/05/27 19:29:53 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }}
Error: error building site: render: failed to render pages: render of "home" failed:
"$hugo-filecache/hugo-creator@v0.0.27-0.20220911012120-e40988e0ccc9/layouts/index.html:66:43":
execute of template failed: template: index.html:66:43: executing "top" at <first 3>:
error calling first: both limit and seq must be provided
I am still having trouble with it. I checked, and index.html
matches the repo. I also checked npm, and everything in package.json seems to be installed. To be clear, the rest of the site renders fine, it's just an issue with index.html
.
Also, does the theme support the ability to mark episodes "upcoming"?
@chrisreddington Still waiting for help, I've definitely tracked the issue to index.html
.
Sorry for the delay. Between holiday and other commitments, I'm only just getting a chance to check back in. I'm wondering if there's some logic on the homepage where I'm expecting certain content to be there, and perhaps there's a scenario I haven't accounted for.
Do you have a repo available to take a peek at what you've got so far?
Yes, upcoming are supported! Just set upcoming to true in the episode frontmatter 😊 for example, you can see this episode has upcoming set to false.
@SamGreenwood1 - I think I've identified the issue. When I build the theme, I create a file in data/popular.json to populate the 'most popular posts' section of the site.
It is an array of strings with the relative file path from the BaseURL to the blog post, e.g.:
["/blog/hello-world/", "/blog/build-2021-summary/", "/blog/jamstack-cloud-winning-combination/", "/blog/api-management-and-policies/", "/blog/static-web-apps-vs-storage-account-static-sites/", "/blog/azuredevops-selfhosted-agents-on-azure/", "/blog/secure-app-service-with-easy-auth-and-app-gateway-public/", "/blog/api-management-and-additional-policies/", "/blog/github-action-docker-dotnet-core/", "/blog/using-oidc-github-actions-azure-swa/"]
I suspect that if you add a dummy file with an empty array, you'll get a successful build. I'm going to add a check to verify if the file exists, and contains an array before using that logic.
Hey @SamGreenwood1, I believe this is now fixed in v0.0.28 of the site. Please can you update to that version and let me know whether all is good? Then we can close the issue :) Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sorry, I was working at overnight camp through the summer and didn't have time to continue working on this. I'm still getting that error.
Discussed in https://github.com/CloudWithChris/hugo-creator/discussions/124