-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix .File.UniqueID on zero object warning #372
Conversation
This patch did not remove the warning emssage for me. best regards, Florian La Roche |
Resolves the warning for me and confirmed the WARN is no longer in the wercker build output @ https://app.wercker.com/matcornic/hugo-theme-learn/runs/build/5e433bd17b63df001ada3867?step=5e433be4ee64ed00085f0fa3 Thank you! |
Avoid warning message when hgo is building the site: Building sites … WARN 2020/03/10 15:05:30 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }} cherry picked from matcornic/hugo-theme-learn#372
Avoid warning message when hugo is building the site: Building sites … WARN 2020/03/10 15:05:30 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }} cherry picked from matcornic/hugo-theme-learn#372
Avoid warning message when hugo is building the site: Building sites … WARN 2020/03/10 15:05:30 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }} cherry picked from matcornic/hugo-theme-learn#372
Avoid warning message when hugo is building the site: Building sites … WARN 2020/03/10 15:05:30 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }} cherry picked from matcornic/hugo-theme-learn#372 Co-authored-by: Flavio Fernandes <flaviof@redhat.com>
For those who hit this page searching for the |
@pavelanni's suggestion above got rid of the waning for me. Looks like every directory needs to have an |
Thank you @pavelanni |
Fixes this warning:
Related issues: #329, #350