-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Tagcloud getting: 'executing "index.html" at <.Name>: can't evaluate field Name in type hugolib.WeightedPages' #318
Comments
I think the example is out of date and needs to be updated. |
Is tags a Map of maps instead of a slice of maps?
That worked for me, but I'm not sure what I'm missing and I'm really curious to know what's happening. Is the |
Yes. I was actually writing documentation for it tonight and in doing so it made me think to change a couple things. Stay tuned. |
Regarding #449, This doesn't change the fact that |
@tgirod... sorry, I don't follow. Are you suggesting that it should return a list of Pages instead? |
As I explained #449, I am trying to list all the pages with a spectific key "lea" in taxonomy "artistes". To do so, I follow the second example in taxonomies/displaying:
There, I get WeightedPages - they don't have a Name field, so the code from the example doesn't work. From there, I am wondering how I could achieve my goal. |
I confirm @tgirod problem. The second example in taxonomies/displaying doesn't work.
raise error:
using |
Similarly, I am trying to list my guides:
But |
I've tried:
But I just get empty strings. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am trying to build a tag cloud in the index.html and using the example given in the docs.
Tags
{{ range .Site.Taxonomies.tags }}
{{ .Name }}
{{ end }}
But whenever i do this i get an error:
'executing "index.html" at <.Name>: can't evaluate field Name in type hugolib.WeightedPages'
Am i missing something?
Cheers Marco
The text was updated successfully, but these errors were encountered: